RE: Query: Unlinking urbs before suspend

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

 



Alan Stern wrote:
> On Fri, 8 Jan 2010, Gadiyar, Anand wrote:
> 
> > Hi all,
> > 
> > Is it necessary that a USB device driver has to unlink all 
> the pending urbs it submitted before calling 
> usb_autopm_put_interface? (I think it is necessary but I'm not sure).
> 
> It isn't necessary.  All the driver has to do is unlink the pending
> URBs in its suspend method.
> 

Thanks Alan!

The driver author had assumed that the call to usb_autopm_put_interface()
would eventually call usb_hcd_flush_endpoint(), where the pending urb
list would be scanned and cleared.

Unlinking the pending urbs in the drivers's suspend method fixed
the EHCI XACT errors I was seeing while suspending the device.

- Anand
--
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