mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 06:46:35 +01:00
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: e532a096be ("net: usb: asix: ax88772: add phylib support")
Reported-by: Anton Lundin <[email protected]>
Signed-off-by: Oleksij Rempel <[email protected]>
Tested-by: Anton Lundin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
This commit is contained in:
1 parent
6b9f1d46fd
commit
805206e66f
1 file changed
+1
@@ -431,6 +431,7 @@ void asix_adjust_link(struct net_device *netdev)
|
||||
|
||||
asix_write_medium_mode(dev, mode, 0);
|
||||
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)
|
||||
|
||||
Reference in new issue
Block a user