Re: detecting usb host controller type/speed from a gadget driver

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

 




On 01/26/10 21:10, Greg KH wrote:
On Sat, Jan 23, 2010 at 12:42:32PM +0530, Arun S wrote:
Hi,
 From a usb gadget driver, is it possible to detect whether or not a
usb 1.1/2.0 HOST CONTROLLER? is managing the usb device during
runtime? I want to use different endpoint descriptors based on this
info during the setting up of interfaces.
The USB spec does not allow this, sorry.  Please read the documentation
at usb.org for more details.

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



I think the member 'speed' in 'usb_gadget' structure would do. I'm not sure if all usb device controller drivers fills this member properly. But at-least Freescale's driver does it (look at the function 'port_change_irq' in 'fsl_udc_core.c')

--
Thanks,
Sudheer






--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux