Re: [RFC 2/9] usb: gadget: OS String support

2014-05-05 Thread Michal Nazarewicz
On Mon, May 05 2014, Andrzej Pietrasiewicz wrote: > Do I get it right that you suggest creating a struct and then > memcpy'ing it to the destination buffer? > > Something on the lines of: > > struct usb_os_string { > __u8bLength; > __u8bDescriptorType; > __u8qwSignatur

Re: [RFC 2/9] usb: gadget: OS String support

2014-05-05 Thread Andrzej Pietrasiewicz
W dniu 01.05.2014 03:36, Michal Nazarewicz pisze: On Thu, Apr 24 2014, Andrzej Pietrasiewicz wrote: There is a custom (non-USB IF) extension to the USB standard: http://msdn.microsoft.com/library/windows/hardware/gg463182 diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/co

Re: [RFC 2/9] usb: gadget: OS String support

2014-05-05 Thread Andrzej Pietrasiewicz
Hello, W dniu 02.05.2014 17:24, Felipe Balbi pisze: On Wed, Apr 30, 2014 at 09:36:01PM -0400, Michal Nazarewicz wrote: On Thu, Apr 24 2014, Andrzej Pietrasiewicz wrote: There is a custom (non-USB IF) extension to the USB standard: This patch does not however implement responding to any

Re: [RFC 2/9] usb: gadget: OS String support

2014-05-02 Thread Felipe Balbi
On Wed, Apr 30, 2014 at 09:36:01PM -0400, Michal Nazarewicz wrote: > On Thu, Apr 24 2014, Andrzej Pietrasiewicz wrote: > > 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 Mi

Re: [RFC 2/9] usb: gadget: OS String support

2014-04-30 Thread Michal Nazarewicz
On Thu, Apr 24 2014, Andrzej Pietrasiewicz wrote: > 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 i

Re: [RFC 2/9] usb: gadget: OS String support

2014-04-30 Thread Felipe Balbi
On Thu, Apr 24, 2014 at 11:17:13AM +0200, Andrzej Pietrasiewicz wrote: > 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

[RFC 2/9] usb: gadget: OS String 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