Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e4a9c9a authored by Jack Pham's avatar Jack Pham Committed by Azhar Shaikh
Browse files

usb: dwc3: msm: Move dwc3_otg to dwc3-msm



The dwc3_otg driver was originally intended to be a generic OTG
layer for the DWC3 core, but the reality is that it is highly
coupled with the MSM-specific implementation. Also, since the
HW-based OTG implementation is not used anymore, in the end its
only useful purpose is to handle role-switching between host
and peripheral modes, which can be done much more simply if
handled directly in the MSM glue.
This patch moves the contents of the dwc3_otg.c file
verbatim to dwc3-msm.c. Follow-up patches will consolidate
redundant structures and eventually remove dwc3_otg.h.

Change-Id: Ib28868fb49d00072d72349c85645450b1af334aa
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
Signed-off-by: default avatarAzhar Shaikh <azhars@codeaurora.org>
parent dafdc45a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ CFLAGS_trace.o := -I$(src)

ccflags-$(CONFIG_USB_DWC3_DEBUG)	:= -DDEBUG
ccflags-$(CONFIG_USB_DWC3_VERBOSE)	+= -DVERBOSE_DEBUG
ccflags-y += -Idrivers/usb/host
ccflags-y += -Idrivers/usb/host -Idrivers/base/power

obj-$(CONFIG_USB_DWC3)			+= dwc3.o

@@ -17,8 +17,6 @@ ifneq ($(filter y,$(CONFIG_USB_DWC3_GADGET) $(CONFIG_USB_DWC3_DUAL_ROLE)),)
	dwc3-y				+= gadget.o ep0.o
endif

dwc3-y					+= dwc3_otg.o

ifneq ($(CONFIG_DEBUG_FS),)
	dwc3-y				+= debugfs.o
endif
+770 −0

File changed.

Preview size limit exceeded, changes collapsed.

drivers/usb/dwc3/dwc3_otg.c

deleted100644 → 0
+0 −801

File deleted.

Preview size limit exceeded, changes collapsed.