]> git.baikalelectronics.ru Git - kernel.git/commit
smsc95xx: fix stalled rx after link change
authorAaro Koskinen <aaro.koskinen@iki.fi>
Thu, 23 Sep 2021 22:00:16 +0000 (01:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Sep 2021 13:17:22 +0000 (14:17 +0100)
commit08e9541a66fcb0eb4c4848c7af3d93612c010147
tree435124880cc0d971a22fd3a41e24eb316682d4c0
parent8df8b2aaa035a7d668d297194c4f624c2b688fe9
smsc95xx: fix stalled rx after link change

After commit 2bdbf5a23dc6 ("smsc95xx: add phylib support"), link changes
are no longer propagated to usbnet. As a result, rx URB allocation won't
happen until there is a packet sent out first (this might never happen,
e.g. running just ssh server with a static IP). Fix by triggering usbnet
EVENT_LINK_CHANGE.

Fixes: 2bdbf5a23dc6 ("smsc95xx: add phylib support")
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c