smsc95xx: fix stalled rx after link change
authorAaro Koskinen <aaro.koskinen@iki.fi>
Thu, 23 Sep 2021 22:00:16 +0000 (01:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Oct 2021 13:55:53 +0000 (15:55 +0200)
commit8321738c6e5ab8c85983c3ac5d7d36e0ccc451ae
treec74ca4402402c74c3579692177a7cbd799ad0f0b
parent8de12ad9162ca2648c82d631c47c2f7de565aa73
smsc95xx: fix stalled rx after link change

[ Upstream commit 5ab8a447bcfee1ded709e7ff5dc7608ca9f66ae2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/usb/smsc95xx.c