summaryrefslogtreecommitdiff
path: root/drivers/usb/musb/musb_gadget_ep0.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2013-08-20 20:35:44 +0400
committerFelipe Balbi <balbi@ti.com>2013-08-27 23:18:14 +0400
commit9047428894660f8f46305917e519ab62f7395cac (patch)
tree1661f315da9f809463f606cde44086745619287f /drivers/usb/musb/musb_gadget_ep0.c
parent51ef74f6400c731827454d010b35b122103fe9f9 (diff)
downloadlinux-9047428894660f8f46305917e519ab62f7395cac.tar.xz
usb: musb: only remove host/udc if it has been added
musb_shutdown() removes always USB host and device. musb_init_controller() adds host and device depending on port_mode. If port mode is set to HOST then the removal of UDC leads only to: |(NULL device *): gadget not registered. and nothing else happens. If port mode is set to DEVICE and we remove the host then we oops in usb_remove_hcd(). This patch ensures that we only remove host in OTG/host mode and device only in OTG/device mode to avoid any trouble. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_gadget_ep0.c')
0 files changed, 0 insertions, 0 deletions