Patch "smsc95xx: fix stalled rx after link change" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    smsc95xx: fix stalled rx after link change

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     smsc95xx-fix-stalled-rx-after-link-change.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit f3f83ae19532c07445f2e1d0eb369c6734c3226d
Author: Aaro Koskinen <aaro.koskinen@xxxxxx>
Date:   Fri Sep 24 01:00:16 2021 +0300

    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@xxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index ea0d5f04dc3a..465e11dcdf12 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -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)
 {
+	struct usbnet *dev = netdev_priv(net);
+
 	phy_print_status(net->phydev);
+	usbnet_defer_kevent(dev, EVENT_LINK_CHANGE);
 }
 
 static int smsc95xx_start_phy(struct usbnet *dev)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux