linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Neukum <oneukum@suse.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: "Robert Foss" <robert.foss@collabora.com>,
	tglx@linutronix.de,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Bjørn Mork" <bjorn@mork.no>,
	"Alan Stern" <stern@rowland.harvard.edu>,
	linux-usb@vger.kernel.org
Subject: [v2] USB: cdc-wdm: don't enable interrupts in USB-giveback
Date: Thu, 14 Jun 2018 17:33:41 +0200	[thread overview]
Message-ID: <1528990421.23543.0.camel@suse.com> (raw)

On Do, 2018-06-14 at 13:17 +0200, Sebastian Andrzej Siewior wrote:
> @@ -964,6 +975,7 @@ static void wdm_disconnect(struct usb_interface *intf)
>         mutex_lock(&desc->wlock);
>         kill_urbs(desc);
>         cancel_work_sync(&desc->rxwork);
> +       cancel_work_sync(&desc->service_outs_intr);
>         mutex_unlock(&desc->wlock);
>         mutex_unlock(&desc->rlock);
>  
> @@ -1065,6 +1077,7 @@ static int wdm_pre_reset(struct usb_interface *intf)
>         mutex_lock(&desc->wlock);
>         kill_urbs(desc);
>         cancel_work_sync(&desc->rxwork);
> +       cancel_work_sync(&desc->service_outs_intr);
>         return 0;

Almost good. I am afraid the work also needs to be canceled in
wdm_suspend()

	Regards
		Oliver
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2018-06-14 15:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-14 15:33 Oliver Neukum [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-06-14 11:17 [v2] USB: cdc-wdm: don't enable interrupts in USB-giveback Sebastian Andrzej Siewior
2018-06-14  8:44 Oliver Neukum
2018-06-13 20:28 Sebastian Andrzej Siewior
2018-06-13 17:43 Oliver Neukum
2018-06-13 16:28 Sebastian Andrzej Siewior

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=1528990421.23543.0.camel@suse.com \
    --to=oneukum@suse.com \
    --cc=bigeasy@linutronix.de \
    --cc=bjorn@mork.no \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=robert.foss@collabora.com \
    --cc=stern@rowland.harvard.edu \
    --cc=tglx@linutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).