net: phy: dp83867: Add lane swapping support in the DP83867 TI's PHY driver
authorLukasz Majewski <lukma@denx.de>
Tue, 7 Feb 2017 05:20:23 +0000 (06:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 18:59:27 +0000 (13:59 -0500)
commitfc6d39c39581f3c12c95f166ce95ef8beb2047e8
treeb0a384028f9c00b7e33d028045acda25091db5f6
parent252ae5330daa121586e9713b704068851e8565d9
net: phy: dp83867: Add lane swapping support in the DP83867 TI's PHY driver

This patch adds support for enabling or disabling the lane swapping (called
"port mirroring" in PHY's CFG4 register) feature of the DP83867 TI's PHY
device.

One use case is when bootstrap configuration enables this feature (because
of e.g. LED_0 wrong wiring) so then one needs to disable it in software
(at u-boot/Linux).

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83867.c