summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/Makefile
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2017-04-05 13:39:31 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-04-11 10:58:31 +0300
commit9840354ff429d4a392a96dff5ab6b5df609b8dc1 (patch)
tree27cfaad3e008de499e821bf9ddf0d824345b06c0 /drivers/usb/dwc3/Makefile
parent41ce1456e1dbbc7355d0fcc10cf7c337c13def24 (diff)
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/Makefile4
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