diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2013-11-07 11:41:25 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-11-26 23:40:44 +0400 |
commit | a01091e5ce866562ea2638a80f2241d8d6bde164 (patch) | |
tree | 1221e6dac8732d6b02a51baffbad4e6557cec768 /drivers/usb/gadget/f_sourcesink.c | |
parent | 5ace3d00fa11bb9ec5e1cc02805ac27201f27e61 (diff) | |
download | linux-a01091e5ce866562ea2638a80f2241d8d6bde164.tar.xz |
usb: gadget: composite: redirect setup requests
If there are setup requests not directed to an endpont or an interface,
current config's setup() has been attempted so far.
This patch, in case the above fails, adds code which tries the setup() of
configuration's function if there is only one function in the configuration.
This behavior is required to provide equivalent of gadget zero with configfs.
The gadget zero has a "config driver" for sourcesink, but all it does is
delegating the request to the function proper. So when the equivalent gadget
is set up with configfs it needs to handle requests directed to
"config driver", but with configfs it is not possible to specify
"config drivers".
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/f_sourcesink.c')
0 files changed, 0 insertions, 0 deletions