]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/usb/dwc3/core.c
usb: dwc3: use a helper function for operation mode setting
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 31 Oct 2011 21:25:40 +0000 (22:25 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Dec 2011 09:48:26 +0000 (11:48 +0200)
commit3140e8cbfec18ecb9c9ef856933fdb98c09af1e8
treec4aad9489eabb168e4bf3eaa5006194286a2a158
parentc2da2ff00606ae008f0e233bd29c3307d0c3ce85
usb: dwc3: use a helper function for operation mode setting

There are two where need to set operational mode:
- during initialization while we decide to run in host,device or DRD
  mode
- at runtime via the debugfs interface.

This patch provides a new function which sets the operational mode and
moves its initialiation to the mode switch instead in the gadget code
itself.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/debugfs.c
drivers/usb/dwc3/gadget.c