Commit 6dfcbd7d authored by Zqiang's avatar Zqiang Committed by Jakub Kicinski
Browse files

net: usb: enable the work after stop usbnet by ip down/up



Oleksij reported that:
The smsc95xx driver fails after one down/up cycle, like this:
 $ nmcli device set enu1u1 managed no
 $ p a a 10.10.10.1/24 dev enu1u1
 $ ping -c 4 10.10.10.3
 $ ip l s dev enu1u1 down
 $ ip l s dev enu1u1 up
 $ ping -c 4 10.10.10.3
The second ping does not reach the host. Networking also fails on other interfaces.

Enable the work by replacing the disable_work_sync() with cancel_work_sync().

[Jun Miao: completely write the commit changelog]

Fixes: 2c04d279 ("net: usb: Convert tasklet API to new bottom half workqueue mechanism")
Reported-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Tested-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: default avatarZqiang <qiang.zhang@linux.dev>
Signed-off-by: default avatarJun Miao <jun.miao@intel.com>
Link: https://patch.msgid.link/20250708081653.307815-1-jun.miao@intel.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 3b932976
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment