summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_uac1.h
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2012-10-29 18:09:56 +0100
committerFelipe Balbi <balbi@ti.com>2012-10-31 14:18:01 +0100
commitb100a2f34dc160502bf7d3006cd8294303bbfacb (patch)
tree6e75fa7d7831c50a3c7886077cbb96389e41f13a /drivers/usb/gadget/u_uac1.h
parentusb: gadget: dummy_hcd: add setup / cleanup of multiple HW intances (diff)
downloadlinux-b100a2f34dc160502bf7d3006cd8294303bbfacb.tar.xz
linux-b100a2f34dc160502bf7d3006cd8294303bbfacb.zip
usb: gadget: dummy_hcd: remove global the_controller variable
The one thing that makes two UDCs+HCDs impossible is the global the_controller variable. This patch changes this. After device allocation we allocate the "the_controller" variable and pass it as platform_data to the UDC and its companion. We can have now multiple instances dummy hcd and therefore I change the limit from one to two. I was able to test this with g_ncm adn g_zero: |# lsusb |Bus 001 Device 002: ID 0525:a4a0 Netchip Technology, Inc. Linux-USB "Gadget Zero" |Bus 002 Device 002: ID 0525:a4a1 Netchip Technology, Inc. Linux-USB Ethernet Gadget |Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub |Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub I was able to start testusb -a and ifconfig usb[01] up with no complains. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/u_uac1.h')
0 files changed, 0 insertions, 0 deletions