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)
commit5ab8a447bcfee1ded709e7ff5dc7608ca9f66ae2
tree435124880cc0d971a22fd3a41e24eb316682d4c0
parent597aa16c782496bf74c5dc3b45ff472ade6cee64
smsc95xx: fix stalled rx after link change

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