]> git.baikalelectronics.ru Git - kernel.git/commit
net: asix: fix "can't send until first packet is send" issue
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 24 Jun 2022 07:51:38 +0000 (09:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 28 Jun 2022 05:04:33 +0000 (22:04 -0700)
commita969b3cf8ee9128c937784fbf1b7d81f125a9cd2
tree697f13446392da8d60edde52266e17f14803cf4a
parent0f76cde52909c57f7141fd466dee52ce565e6f45
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: 1259b629c90b ("net: usb: asix: ax88772: add phylib support")
Reported-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Tested-by: Anton Lundin <glance@acc.umu.se>
Link: https://lore.kernel.org/r/20220624075139.3139300-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/asix_common.c