dwc2 gadget driver does not generate DISABLE event on unplugging USB cable

2017-12-08 Thread Jun Sun
Hi, all, I have a raspberry pi zero w board and I'm currently configuring the device as USB gadget and connects it to PC. I'm using configfs/functionfs to send a vendor specific interface with single buik in and bulk out endpoint each. When I unplug the USB cable, there is no DISABLE event gener

USB gadget : generic functionfs function has no os_desc while rndis function has, why?

2018-01-03 Thread Jun Sun
Hi, all, I'm playing with USB gadget with configfs on raspberry pi zero w. My goal is to setup a generic functionfs function that uses Windows OS descriptor so that windows would automatically install winusb driver. It seems I would have to - enable MS-specific os descriptor - specify the compat

Re: USB gadget : generic functionfs function has no os_desc while rndis function has, why?

2018-02-06 Thread Jun Sun
sztof Opasiak wrote: > > > On 01/04/2018 06:58 AM, Jun Sun wrote: >> >> Hi, all, >> >> I'm playing with USB gadget with configfs on raspberry pi zero w. My >> goal is to setup a generic functionfs function that uses Windows OS >> descriptor so that w

Re: USB gadget : generic functionfs function has no os_desc while rndis function has, why?

2018-02-10 Thread Jun Sun
lear to me what kernel interfaces are used for conveying OS descriptor for functionfs-based function. Thanks again. Really appreciate your help. Jun On Wed, Feb 7, 2018 at 1:30 AM, Krzysztof Opasiak wrote: > > > On 02/07/2018 08:25 AM, Jun Sun wrote: >> >> Thanks, Krysz