diff options
author | Roger Quadros <rogerq@ti.com> | 2017-04-05 12:39:31 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-04-11 09:58:31 +0200 |
commit | 9840354ff429d4a392a96dff5ab6b5df609b8dc1 (patch) | |
tree | 27cfaad3e008de499e821bf9ddf0d824345b06c0 /drivers/usb/dwc3/Makefile | |
parent | usb: dwc3: core: make dwc3_set_mode() work properly (diff) | |
download | linux-9840354ff429d4a392a96dff5ab6b5df609b8dc1.tar.xz linux-9840354ff429d4a392a96dff5ab6b5df609b8dc1.zip |
usb: dwc3: Add dual-role support
If dr_mode is "otg" then support dual role mode of operation.
Currently this mode is only supported when an extcon handle is
present in the dwc3 device tree node. This is needed to
get the ID status events of the port.
We're using a workqueue to manage the dual-role state transitions
as the extcon notifier (dwc3_drd_notifier) is called in an atomic
context by extcon_sync() and this doesn't go well with
usb_del_gadget_udc() causing a lockdep and softirq warning.
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/Makefile')
-rw-r--r-- | drivers/usb/dwc3/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile index ffca34029b21..f15fabbd1e59 100644 --- a/drivers/usb/dwc3/Makefile +++ b/drivers/usb/dwc3/Makefile @@ -17,6 +17,10 @@ ifneq ($(filter y,$(CONFIG_USB_DWC3_GADGET) $(CONFIG_USB_DWC3_DUAL_ROLE)),) dwc3-y += gadget.o ep0.o endif +ifneq ($(CONFIG_USB_DWC3_DUAL_ROLE),) + dwc3-y += drd.o +endif + ifneq ($(CONFIG_USB_DWC3_ULPI),) dwc3-y += ulpi.o endif |