]> git.ipfire.org Git - people/ms/u-boot.git/commit
net: phy: Optionally force master mode for RTL PHY
authorMichael Haas <haas@computerlinguist.org>
Fri, 25 Mar 2016 17:22:50 +0000 (18:22 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 31 Mar 2016 12:29:11 +0000 (14:29 +0200)
commit525d187afb418a4deef8916844f5f7744da402a8
treed0ca19ef4c62ee4acd2b9bbc910eba1ac2b5e607
parentc74384c68011c894a3543f7aca7bc387c1ab4a16
net: phy: Optionally force master mode for RTL PHY

This patch introduces CONFIG_RTL8211X_PHY_FORCE_MASTER. If this
define is set, RTL8211x PHYs (except for the RTL8211F) will have their
1000BASE-T master/slave autonegotiation disabled and forced to master
mode.

This is helpful for PHYs like the RTL8211C which produce unstable links
in slave mode. Such problems have been found on the A20-Olimex-SOM-EVB
and A20-OLinuXino-Lime2.

There is no proper way to identify affected PHYs in software as the
RTL8211C shares its UID with the RTL8211B. Thus, this fix requires
the introduction of an #ifdef.

CC: fradav@gmail.com
CC: merker@debian.org
CC: hdegoede@redhat.com
CC: ijc@hellion.org.uk
CC: joe.hershberger@ni.com
Signed-off-by: Michael Haas <haas@computerlinguist.org>
Tested-by: Karsten Merker <merker@debian.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/net/Kconfig
drivers/net/phy/realtek.c