Re: Overly conservative xHCI bandwidth estimation

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

 



On Wed, 21 Oct 2015, Steinar H. Gunderson wrote:

> On Wed, Oct 21, 2015 at 10:29:11AM -0400, Alan Stern wrote:
> >> Is there such a blacklist already, where I can add the devices (there are two
> >> distinct IDs behaving identically) and see if it helps?
> > There is a blacklist, but it does not affect LPM.  See 
> > drivers/usb/core/quirks.c and include/linux/usb/quirks.h.
> 
> OK, so to blacklist the device for LPM, some new code would need to get
> written.

Yes.  The difficulty is that usb_device_supports_lpm() and
usb_set_lpm_parameters() in hub.c are called before
usb_detect_quirks().

It would be easier to move the usb_detect_quirks() call into
hub_port_init(), before the usb_get_bos_descriptor() and LPM stuff.  
Then you could simply skip the LPM setup if your quirk was set.

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