Commit 805206e6 authored by Oleksij Rempel's avatar Oleksij Rempel Committed by Jakub Kicinski

net: asix: fix "can't send until first packet is send" issue

If cable is attached after probe sequence, the usbnet framework would
not automatically start processing RX packets except at least one
packet was transmitted.

On systems with any kind of address auto configuration this issue was
not detected, because some packets are send immediately after link state
is changed to "running".

With this patch we will notify usbnet about link status change provided by the
PHYlib.

Fixes: e532a096 ("net: usb: asix: ax88772: add phylib support")
Reported-by: default avatarAnton Lundin <glance@acc.umu.se>
Signed-off-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Tested-by: default avatarAnton Lundin <glance@acc.umu.se>
Link: https://lore.kernel.org/r/20220624075139.3139300-1-o.rempel@pengutronix.deSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6b9f1d46
...@@ -431,6 +431,7 @@ void asix_adjust_link(struct net_device *netdev) ...@@ -431,6 +431,7 @@ void asix_adjust_link(struct net_device *netdev)
asix_write_medium_mode(dev, mode, 0); asix_write_medium_mode(dev, mode, 0);
phy_print_status(phydev); phy_print_status(phydev);
usbnet_link_change(dev, phydev->link, 0);
} }
int asix_write_gpio(struct usbnet *dev, u16 value, int sleep, int in_pm) int asix_write_gpio(struct usbnet *dev, u16 value, int sleep, int in_pm)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment