]> 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)
commitf192e5afcb1ad324f264bfe46f3bb5ea402fe2fd
tree435124880cc0d971a22fd3a41e24eb316682d4c0
parent03e3a613a1e4ccf88ad39d910a6bb455bdd0f291
smsc95xx: fix stalled rx after link change

After commit aba6c7f83541 ("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: aba6c7f83541 ("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