* [PATCH resend net-next] r8169: improve error message if no dedicated PHY driver is found
@ 2020-04-27 19:07 Heiner Kallweit
2020-04-27 20:25 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Heiner Kallweit @ 2020-04-27 19:07 UTC (permalink / raw)
To: Realtek linux nic maintainers, David Miller; +Cc: netdev
There's a number of consumer mainboards where the BIOS leaves the PHY
in a state that it's reporting an invalid PHY ID. To detect such cases
add the PHY ID to the error message if no dedicated PHY driver is found.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
- accidently sent previous version from wrong mail account
---
drivers/net/ethernet/realtek/r8169_main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c
index f70e36c20..7471fae53 100644
--- a/drivers/net/ethernet/realtek/r8169_main.c
+++ b/drivers/net/ethernet/realtek/r8169_main.c
@@ -5197,7 +5197,8 @@ static int r8169_mdio_register(struct rtl8169_private *tp)
/* Most chip versions fail with the genphy driver.
* Therefore ensure that the dedicated PHY driver is loaded.
*/
- dev_err(&pdev->dev, "realtek.ko not loaded, maybe it needs to be added to initramfs?\n");
+ dev_err(&pdev->dev, "no dedicated PHY driver found for PHY ID 0x%08x, maybe realtek.ko needs to be added to initramfs?\n",
+ tp->phydev->phy_id);
return -EUNATCH;
}
--
2.26.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH resend net-next] r8169: improve error message if no dedicated PHY driver is found
2020-04-27 19:07 [PATCH resend net-next] r8169: improve error message if no dedicated PHY driver is found Heiner Kallweit
@ 2020-04-27 20:25 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-04-27 20:25 UTC (permalink / raw)
To: hkallweit1; +Cc: nic_swsd, netdev
From: Heiner Kallweit <hkallweit1@gmail.com>
Date: Mon, 27 Apr 2020 21:07:00 +0200
> There's a number of consumer mainboards where the BIOS leaves the PHY
> in a state that it's reporting an invalid PHY ID. To detect such cases
> add the PHY ID to the error message if no dedicated PHY driver is found.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
> - accidently sent previous version from wrong mail account
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-27 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-27 19:07 [PATCH resend net-next] r8169: improve error message if no dedicated PHY driver is found Heiner Kallweit
2020-04-27 20:25 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.