LKML Archive on
help / color / mirror / Atom feed
From: Alan Stern <>
To: Duncan Sands <>
Cc: Pete Zaitcev <>,
	Linux Kernel Mailing List <>,
	Simon Arlott <>
Subject: Re: [linux-usb-devel] [PATCH 2/2] usbatm: Detect usb device shutdown and ignore failed urbs.
Date: Fri, 23 Feb 2007 11:16:24 -0500 (EST)	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Fri, 23 Feb 2007, Duncan Sands wrote:

> if you get ESHUTDOWN, does that mean that you are about to be disconnected,
> i.e. the disconnect method is about to be called?  Or is it possible for the
> device to just sit there disabled, but not disconnected?

It is possible to receive ESHUTDOWN without being disconnected.  For 
instance, a race with suspend could cause it to happen (although if your 
driver is written correctly that race should never occur).  Another more 
likely scenario is that you have an active URB while calling 
usb_set_interface(); the endpoints for the old altsetting get disabled and 
the URB returns with an ESHUTDOWN error.

Alan Stern

  reply	other threads:[~2007-02-23 16:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-21 21:39 Simon Arlott
2007-02-22 10:43 ` Duncan Sands
2007-02-22 23:53   ` Pete Zaitcev
2007-02-23  9:36     ` Duncan Sands
2007-02-23 16:16       ` Alan Stern [this message]
2007-02-23 17:05         ` [linux-usb-devel] " Duncan Sands
2007-02-23 18:11           ` Alan Stern

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \
    --subject='Re: [linux-usb-devel] [PATCH 2/2] usbatm: Detect usb device shutdown and ignore failed urbs.' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).