Re: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-24 Thread Daniel Mack
On 08/22/2014 04:43 AM, Xuebing Wang wrote: static inline bool gadget_supports_altsettings(struct usb_gadget *gadget) { /* PXA 21x/25x/26x has no altsettings at all */ if (gadget_is_pxa(gadget)) return false; /* PXA 27x and 3xx have *broken*

Re: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-22 Thread Xuebing Wang
Hi Community, I finally fix the UAC1 on Windows 7 host issue. Thanks for your help. I will submit patches after more testing. On 08/22/2014 10:43 AM, Xuebing Wang wrote: On 08/21/2014 04:24 PM, Sebastian Andrzej Siewior wrote: On 08/20/2014 02:13 AM, Peter Chen wrote: Thanks, so Xunbing,

Re: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-21 Thread Sebastian Andrzej Siewior
On 08/20/2014 02:13 AM, Peter Chen wrote: Thanks, so Xunbing, the imx6 hardware (chipidea core) have 8 endpoints, and support all four transfer type, it should be no problem to support RNDIS. But you shouldn't use RNDIS on Windows 7 or 8. As far as I recall they do not bring the RNDIS driver

Re: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-21 Thread Xuebing Wang
On 08/21/2014 04:24 PM, Sebastian Andrzej Siewior wrote: On 08/20/2014 02:13 AM, Peter Chen wrote: Thanks, so Xunbing, the imx6 hardware (chipidea core) have 8 endpoints, and support all four transfer type, it should be no problem to support RNDIS. But you shouldn't use RNDIS on Windows 7 or

Re: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-19 Thread Xuebing Wang
On 08/19/2014 12:58 PM, Peter Chen wrote: My environment is Freescale i.MX6SL EVK board (as USB peripheral device), which is based on kernel 3.10.17. i.MX6SL uses ChipIdea dual-role controller. My problem is that gadget drivers g_ether and g_audio (UAC1 enabled) can NOT be detected by

Re: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-19 Thread Peter Chen
On Tue, Aug 19, 2014 at 06:05:27PM +0800, Xuebing Wang wrote: On 08/19/2014 12:58 PM, Peter Chen wrote: My environment is Freescale i.MX6SL EVK board (as USB peripheral device), which is based on kernel 3.10.17. i.MX6SL uses ChipIdea dual-role controller. My problem is that gadget drivers

Re: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-19 Thread Felipe Balbi
On Tue, Aug 19, 2014 at 10:27:39PM +0800, Peter Chen wrote: On Tue, Aug 19, 2014 at 06:05:27PM +0800, Xuebing Wang wrote: On 08/19/2014 12:58 PM, Peter Chen wrote: My environment is Freescale i.MX6SL EVK board (as USB peripheral device), which is based on kernel 3.10.17. i.MX6SL uses

Re: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-19 Thread Peter Chen
On Tue, Aug 19, 2014 at 09:36:19AM -0500, Felipe Balbi wrote: On Tue, Aug 19, 2014 at 10:27:39PM +0800, Peter Chen wrote: On Tue, Aug 19, 2014 at 06:05:27PM +0800, Xuebing Wang wrote: On 08/19/2014 12:58 PM, Peter Chen wrote: My environment is Freescale i.MX6SL EVK board (as USB

[linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-18 Thread Xuebing Wang
Hi Community, My environment is Freescale i.MX6SL EVK board (as USB peripheral device), which is based on kernel 3.10.17. i.MX6SL uses ChipIdea dual-role controller. My problem is that gadget drivers g_ether and g_audio (UAC1 enabled) can NOT be detected by Windows 7 natively, while

RE: [linux-usb] USB Gadget drivers Windows 7/8 support and .bAlternateSetting in interface descriptor

2014-08-18 Thread Peter Chen
My environment is Freescale i.MX6SL EVK board (as USB peripheral device), which is based on kernel 3.10.17. i.MX6SL uses ChipIdea dual-role controller. My problem is that gadget drivers g_ether and g_audio (UAC1 enabled) can NOT be detected by Windows 7 natively, while g_mass_storage,