mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
smsc95xx: fix stalled rx after link change
[ Upstream commit5ab8a447bc] After commit05b35e7eb9("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:05b35e7eb9("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>
This commit is contained in:
parent
8de12ad916
commit
8321738c6e
|
|
@ -1178,7 +1178,10 @@ static void smsc95xx_unbind(struct usbnet *dev, struct usb_interface *intf)
|
||||||
|
|
||||||
static void smsc95xx_handle_link_change(struct net_device *net)
|
static void smsc95xx_handle_link_change(struct net_device *net)
|
||||||
{
|
{
|
||||||
|
struct usbnet *dev = netdev_priv(net);
|
||||||
|
|
||||||
phy_print_status(net->phydev);
|
phy_print_status(net->phydev);
|
||||||
|
usbnet_defer_kevent(dev, EVENT_LINK_CHANGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int smsc95xx_start_phy(struct usbnet *dev)
|
static int smsc95xx_start_phy(struct usbnet *dev)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user