]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: fix PHY driver check on platforms w/o module softdeps
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 27 Mar 2020 16:33:32 +0000 (17:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2020 22:56:34 +0000 (15:56 -0700)
commit67712136aea06aa784a53c258171fdd616b509bf
treeff5a271649bca1e64f4c1521a34f9a80e576c06e
parentec75d341cfffa90ab7cdb439edc59e74469023b1
r8169: fix PHY driver check on platforms w/o module softdeps

On Android/x86 the module loading infrastructure can't deal with
softdeps. Therefore the check for presence of the Realtek PHY driver
module fails. mdiobus_register() will try to load the PHY driver
module, therefore move the check to after this call and explicitly
check that a dedicated PHY driver is bound to the PHY device.

Fixes: e4387abf08c6 ("r8169: check that Realtek PHY driver module is loaded")
Reported-by: Chih-Wei Huang <cwhuang@android-x86.org>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c