Skip to content

Commit efafb28

Browse files
oleremgregkh
authored andcommitted
net: asix: fix "can't send until first packet is send" issue
commit 805206e upstream. 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: e532a09 ("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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ed303cc commit efafb28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/usb/asix_common.c

+1
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ void asix_adjust_link(struct net_device *netdev)
431431

432432
asix_write_medium_mode(dev, mode, 0);
433433
phy_print_status(phydev);
434+
usbnet_link_change(dev, phydev->link, 0);
434435
}
435436

436437
int asix_write_gpio(struct usbnet *dev, u16 value, int sleep, int in_pm)

0 commit comments

Comments
 (0)