]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: add workaround for issue where PHY driver doesn't bind to the device
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 23 Nov 2018 18:41:29 +0000 (19:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Nov 2018 23:00:24 +0000 (15:00 -0800)
commitb93000aa6c712957a7271593f22d203715db3bd2
treec30780a2c28e7ab09d6d72fa5865d21553ffb8a9
parentd530b6bf7e56fde37d261aee8e73bbcabcab30c5
net: phy: add workaround for issue where PHY driver doesn't bind to the device

After switching the r8169 driver to use phylib some user reported that
their network is broken. This was caused by the genphy PHY driver being
used instead of the dedicated PHY driver for the RTL8211B. Users
reported that loading the Realtek PHY driver module upfront fixes the
issue. See also this mail thread:
https://marc.info/?t=154279781800003&r=1&w=2
The issue is quite weird and the root cause seems to be somewhere in
the base driver core. The patch works around the issue and may be
removed once the actual issue is fixed.

The Fixes tag refers to the first reported occurrence of the issue.
The issue itself may have been existing much longer and it may affect
users of other network chips as well. Users typically will recognize
this issue only if their PHY stops working when being used with the
genphy driver.

Fixes: 224b054928bc ("r8169: add basic phylib support")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c