aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2025-05-05 10:43:36 +0200
committerDavid S. Miller <davem@davemloft.net>2025-05-07 12:57:05 +0100
commit3da0ae52705d609f7d080a8158cd46db222b29de (patch)
treed104caabe96809b2b2d4034ceaec9a8534ab2c59
parentnet: usb: lan78xx: Improve error handling in PHY initialization (diff)
downloadwireguard-linux-3da0ae52705d609f7d080a8158cd46db222b29de.tar.xz
wireguard-linux-3da0ae52705d609f7d080a8158cd46db222b29de.zip
net: usb: lan78xx: remove explicit check for missing PHY driver
RGMII timing correctness relies on the PHY providing internal delays. This is typically ensured via PHY driver, strap pins, or PCB layout. Explicitly checking for a PHY driver here is unnecessary and non-standard. This logic applies to all MACs, not just LAN78xx, and should be left to phylib, phylink, or platform configuration. Drop the check and rely on standard subsystem behavior. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Thangaraj Samynathan <thangaraj.s@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/usb/lan78xx.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c
index 19db18cf0504..9c0658227bde 100644
--- a/drivers/net/usb/lan78xx.c
+++ b/drivers/net/usb/lan78xx.c
@@ -2543,10 +2543,6 @@ static struct phy_device *lan7801_phy_init(struct lan78xx_net *dev)
if (ret < 0)
return ERR_PTR(ret);
} else {
- if (!phydev->drv) {
- netdev_err(dev->net, "no PHY driver found\n");
- return ERR_PTR(-EINVAL);
- }
dev->interface = PHY_INTERFACE_MODE_RGMII_ID;
/* The PHY driver is responsible to configure proper RGMII
* interface delays. Disable RGMII delays on MAC side.