Re: [RFC 3/9] usb: gadget: OS Feature Descriptors support

2014-05-06 Thread Andrzej Pietrasiewicz
Hello Michal, W dniu 05.05.2014 20:41, Michal Nazarewicz pisze: On Mon, May 05 2014, Andrzej Pietrasiewicz wrote: When a gadget is composed with configfs the usb_add_config() is invoked each time a configuration's directory is created, so this way configurations' indices are determined. If we w

Re: [RFC 3/9] usb: gadget: OS Feature Descriptors support

2014-05-05 Thread Michal Nazarewicz
On Mon, May 05 2014, Andrzej Pietrasiewicz wrote: > When a gadget is composed with configfs the usb_add_config() is invoked > each time a configuration's directory is created, so this way configurations' > indices are determined. If we were to rearrange the configurations if > one of them becomes "

Re: [RFC 3/9] usb: gadget: OS Feature Descriptors support

2014-05-05 Thread Andrzej Pietrasiewicz
Hi Michal, W dniu 01.05.2014 03:42, Michal Nazarewicz pisze: On Thu, Apr 24 2014, Andrzej Pietrasiewicz wrote: @@ -438,8 +440,46 @@ static int config_desc(struct usb_composite_dev *cdev, unsigned w_value) } - /* This is a lookup by config *INDEX* */ w_value &= 0xff; +

Re: [RFC 3/9] usb: gadget: OS Feature Descriptors support

2014-04-30 Thread Michal Nazarewicz
On Thu, Apr 24 2014, Andrzej Pietrasiewicz wrote: > @@ -438,8 +440,46 @@ static int config_desc(struct usb_composite_dev *cdev, > unsigned w_value) > > } > > - /* This is a lookup by config *INDEX* */ > w_value &= 0xff; > + /* > + * This is a lookup to make non-complia

[RFC 3/9] usb: gadget: OS Feature Descriptors support

2014-04-24 Thread Andrzej Pietrasiewicz
There is a custom (non-USB IF) extension to the USB standard: http://msdn.microsoft.com/library/windows/hardware/gg463182 The said extension is maintained by Microsoft for Microsoft. Yet it is fairly common for various devices to use it, and a popular proprietary operating system expects devices