linux-uconsole/include/linux/usb
Sebastian Andrzej Siewior 9bb2859f8a usb: gadget: composite: introduce usb_gstrings_attach()
The USB strings don't (yet) fully work in multiple configs/gadget
environment. The string id is assigned to the descriptor and the struct
usb_strings. We create a copy of the individual descriptor so we don't
clash if we use a function more than once. However, we have only one
struct usb_string for each string.

Currently each function which is used multiple times checks for
"id != 0" and only assigns string ids if it did not happen yet. This
works well if we use the same function multiple times as long as we do
it within the "one" gadget we have. Trouble starts once we use the same
function in a second gadget.

In order to solve this I introduce usb_gstrings_attach(). This function will
crate a copy all structs except for the strings which are not copied.
After the copy it will assign USB ids and attach it to cdev.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-01-21 20:52:48 +02:00
..
association.h
atmel_usba_udc.h
audio-v2.h
audio.h UAPI: (Scripted) Disintegrate include/linux/usb 2012-10-09 09:49:07 +01:00
c67x00.h
cdc-wdm.h
cdc_ncm.h net: cdc_mbim: adding MBIM driver 2012-10-23 02:40:11 -04:00
ch9.h UAPI: (Scripted) Disintegrate include/linux/usb 2012-10-09 09:49:07 +01:00
chipidea.h
composite.h usb: gadget: composite: introduce usb_gstrings_attach() 2013-01-21 20:52:48 +02:00
ehci_def.h USB: EHCI: Tegra: Fix wrong register definition 2012-09-18 17:40:56 +01:00
ehci_pdriver.h USB: EHCI: remove ehci_port_power() routine 2012-10-31 12:48:07 -07:00
ezusb.h USB: ezusb: unexport some functions that aren't being used 2012-10-24 14:19:16 -07:00
functionfs.h UAPI: (Scripted) Disintegrate include/linux/usb 2012-10-09 09:49:07 +01:00
g_hid.h
gadget.h usb: gadget: composite: introduce usb_gstrings_attach() 2013-01-21 20:52:48 +02:00
gpio_vbus.h
hcd.h
input.h
intel_mid_otg.h
iowarrior.h
irda.h
isp116x.h
isp1301.h
isp1362.h
isp1760.h
m66592.h
msm_hsusb.h
msm_hsusb_hw.h
musb-omap.h
musb.h
net2280.h
nop-usb-xceiv.h
ohci_pdriver.h USB: ohci: allow platform driver to specify the number of ports 2012-10-22 11:23:59 -07:00
omap_usb.h usb: phy: add a new driver for omap usb2 phy 2012-09-06 20:14:53 +03:00
otg.h usb: phy: fix build break 2012-09-06 16:01:11 +03:00
phy.h usb: phy: change phy notify connect/disconnect API 2012-11-15 17:44:51 -08:00
phy_companion.h usb: phy: add a new driver for omap usb2 phy 2012-09-06 20:14:53 +03:00
quirks.h
r8a66597.h
renesas_usbhs.h
rndis_host.h
serial.h USB: ezusb: add support for Cypress FX2LP 2012-09-18 17:23:47 +01:00
sl811.h
storage.h
tegra_usb_phy.h usb: move phy driver from mach-tegra to drivers/usb 2012-09-05 16:43:57 +03:00
tilegx.h
uas.h
ulpi.h
usbnet.h usbnet: generic manage_power() 2012-12-19 12:46:40 -08:00
wusb-wa.h
wusb.h