Re: unbalanced calls to post_reset() from usb_reset_device()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 25 Nov 2009, Oliver Neukum wrote:

> Am Mittwoch, 11. November 2009 21:49:59 schrieb Alan Stern:
> > > I think it is necessary to do the rebinding in a second pass after
> > > doing the notifications. But this is subtle. Alan, what do you think?
> > 
> > You are right.  But I would make the code a little cleaner...
> 
> Hi,
> 
> does this address the issues you had?
> 
> 	Regards
> 		Oliver
> 
> --
> 
> commit 092d62009be992df7d6ba6c7c6acb91ca58567b5
> Author: Oliver Neukum <oliver@xxxxxxxxxx>
> Date:   Wed Nov 25 10:22:20 2009 +0100
> 
>     usb:fix unbalanced calls to post_reset() in usb_reset_device()
>     
>     usb_reset_device() can mean drivers are disconnected or reconnected
>     for such drivers post_reset() must not be called. Therefore do the
>     post_reset() and the probing in two passes

Yes, this looks better.

Alan Stern

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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux