Re: [linux-usb-devel] Re: [OOPS, usbcore, releaseintf] 2.6.0-test10-mm1

From: Alan Stern (stern_at_rowland.harvard.edu)
Date: 12/13/03

  • Next message: Keith Owens: "Re: PROBLEM: messed-up symbol names like "mysym_R__ver_mysym""
    Date:	Fri, 12 Dec 2003 20:10:55 -0500 (EST)
    To: Oliver Neukum <oliver@neukum.org>
    
    

    On Sat, 13 Dec 2003, Oliver Neukum wrote:

    > > Hoever the consequent changes to the device structure (i.e., everything
    > > needed to reflect the fact that it is disconnected) could be done in
    > > another thread.
    >
    > Please clarify. You have to disconnect() before you do the physical reset.

    No you don't. In fact, that would defeat one of the purposes of
    usb_reset_device, which is to re-initialize the device while leaving an
    existing driver bound to it (so far as I know that feature is only used by
    usb-storage). It's a last-ditch form of error recovery.

    The API has an admitted weak spot when more than one driver is bound to
    the device. No one has settled on a definite policy for how to handle
    that situation.

    > IMHO you should do the code paths for late errors and the device morphed
    > case in another thread, but what's the benefit for success?

    In the success case there are no errors, the device hasn't morphed, and
    there's no need to do anything in another thread. The existing driver(s)
    can remain bound, usb_reset_device returns 0, and nothing more has to be
    done.

    Alan Stern

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Keith Owens: "Re: PROBLEM: messed-up symbol names like "mysym_R__ver_mysym""

    Relevant Pages

    • Re: [BK] disconnected operation
      ... > are using your net connection to maintain your date and then when you ... > disconnect your date warps forward? ... second commit. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • lineDeallocateCall operation in synchronous mode.
      ... I have a TAPI based phone application. ... disconnect the call, I am calling lineDrop function. ... success in that, I am doing lineDeallocateCall in while loop so that I ...
      (microsoft.public.win32.programmer.tapi)
    • Re: Race between "mount" uevent and /proc/mounts?
      ... > safe to disconnect the storage device, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: weird mouse movement in 2.6.0-test9
      ... > usb to a dell i8k laptop. ... To rule out the touchpad/keyboard clitorus, ... > can disconnect the mouse and the problem stops. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • ieee1394 failed to work after S3 resume.
      ... Max payload ... Network Connection ... disconnect, address 2 ... after error recovery ...
      (Linux-Kernel)