From: Oleksij Rempel <o.rempel@pengutronix.de>
To: qiang.zhang@linux.dev
Cc: Jun Miao <jun.miao@intel.com>,
sbhatta@marvell.com, kuba@kernel.org, oneukum@suse.com,
netdev@vger.kernel.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [bug report] [PATCH v6] net: usb: Convert tasklet API to new bottom half workqueue mechanism
Date: Mon, 7 Jul 2025 09:09:09 +0200 [thread overview]
Message-ID: <aGtylalCTaWwqhQk@pengutronix.de> (raw)
In-Reply-To: <c2e597d2101b588d19a5028b8ae73a33c5240e32@linux.dev>
Hello, Zqiang
On Sat, Jul 05, 2025 at 06:41:20AM +0000, qiang.zhang@linux.dev wrote:
> > Hello, Oleksij
> >
> > Please try follow patch base on Jun Miao's patchs:
> >
>
> Sorry, please ignore previous, try it:
>
> diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
> index 9564478a79cc..6a3cca104af9 100644
> --- a/drivers/net/usb/usbnet.c
> +++ b/drivers/net/usb/usbnet.c
> @@ -861,14 +861,14 @@ int usbnet_stop (struct net_device *net)
> /* deferred work (timer, softirq, task) must also stop */
> dev->flags = 0;
> timer_delete_sync(&dev->delay);
> - disable_work_sync(&dev->bh_work);
> + cancel_work_sync(&dev->bh_work);
> cancel_work_sync(&dev->kevent);
>
> /* We have cyclic dependencies. Those calls are needed
> * to break a cycle. We cannot fall into the gaps because
> * we have a flag
> */
> - disable_work_sync(&dev->bh_work);
> + cancel_work_sync(&dev->bh_work);
> timer_delete_sync(&dev->delay);
> cancel_work_sync(&dev->kevent);
It seems to work now, thank you!
Tested on LAN9512 and ASIX AX88772B.
You can add my:
Reported-by: Oleksij Rempel <o.rempel@pengutronix.de>
Tested-by: Oleksij Rempel <o.rempel@pengutronix.de>
Best Regards,
Oleksij
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
prev parent reply other threads:[~2025-07-07 7:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-18 17:39 [PATCH v6] net: usb: Convert tasklet API to new bottom half workqueue mechanism Jun Miao
2025-06-19 22:50 ` patchwork-bot+netdevbpf
2025-07-04 16:40 ` [bug report] " Oleksij Rempel
2025-07-05 6:07 ` qiang.zhang
2025-07-05 6:41 ` qiang.zhang
2025-07-07 7:09 ` Oleksij Rempel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aGtylalCTaWwqhQk@pengutronix.de \
--to=o.rempel@pengutronix.de \
--cc=jun.miao@intel.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oneukum@suse.com \
--cc=qiang.zhang@linux.dev \
--cc=sbhatta@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.