]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:00:21 +0000 (11:00 +0200)
commit98fbce5cd8625ba5e2304ace110fcfdeb7b0c009
treead6e866d88cead8b71b4b642183cbfc7553aa245
parent7bab4e5b997be19eeb29c61c4bcc1eed4a6961f9
r8169: fix PHY driver check on platforms w/o module softdeps

commit 2e8c339b4946490a922a21aa8cd869c6cfad2023 upstream.

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: f32593773549 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/realtek/r8169_main.c