Re: [PATCHv2 1/2] usb: gadget: composite: optional handling of per-device requests

2014-10-09 Thread Alan Stern
On Thu, 9 Oct 2014, Robert Baldyga wrote: > In fact this patch solves in some way the problem 'who should handle > requests addressed to device?'. In theory, such requests should be handled by the top-level gadget driver (i.e., composite.c or equivalent). By definition, function drivers handle

Re: [PATCHv2 1/2] usb: gadget: composite: optional handling of per-device requests

2014-10-09 Thread Robert Baldyga
On 10/09/2014 01:59 PM, Andrzej Pietrasiewicz wrote: > W dniu 08.10.2014 o 15:06, Felipe Balbi pisze: >> Hi, >> >> On Wed, Oct 08, 2014 at 01:32:31PM +0200, Andrzej Pietrasiewicz wrote: >>> Some not-so-well-behaving USB hosts with a popular proprietary operating >>> system sometimes issue per-devic

Re: [PATCHv2 1/2] usb: gadget: composite: optional handling of per-device requests

2014-10-09 Thread Andrzej Pietrasiewicz
W dniu 08.10.2014 o 15:06, Felipe Balbi pisze: Hi, On Wed, Oct 08, 2014 at 01:32:31PM +0200, Andrzej Pietrasiewicz wrote: Some not-so-well-behaving USB hosts with a popular proprietary operating system sometimes issue per-device requests even though they mean requests for a particular function,

Re: [PATCHv2 1/2] usb: gadget: composite: optional handling of per-device requests

2014-10-08 Thread Felipe Balbi
Hi, On Wed, Oct 08, 2014 at 01:32:31PM +0200, Andrzej Pietrasiewicz wrote: > Some not-so-well-behaving USB hosts with a popular proprietary operating > system sometimes issue per-device requests even though they mean requests > for a particular function, e.g. for ptp (picture transfer protocol).

[PATCHv2 1/2] usb: gadget: composite: optional handling of per-device requests

2014-10-08 Thread Andrzej Pietrasiewicz
Some not-so-well-behaving USB hosts with a popular proprietary operating system sometimes issue per-device requests even though they mean requests for a particular function, e.g. for ptp (picture transfer protocol). This patch adds optional "for_device" function in usb_configuration so that it can