linux_old1/drivers/usb/dwc3
Vivek Gautam 1bc0d92689 usb: dwc3: Fix compilation break when building with USB_DWC3_DUAL_ROLE=y
The commit:
388e5c5 usb: dwc3: remove dwc3 dependency on host AND gadget
breaks compilation when
USB=y, USB_GADGET=m, USB_DWC3=y and USB_DWC3_DUAL_ROLE=y.

drivers/built-in.o: In function `dwc3_gadget_giveback':
drivers/usb/dwc3/gadget.c:271: undefined reference to `usb_gadget_unmap_request'
drivers/built-in.o: In function `__dwc3_gadget_kick_transfer':
drivers/usb/dwc3/gadget.c:1005: undefined reference to `usb_gadget_unmap_request'
drivers/built-in.o: In function `__dwc3_gadget_ep_queue':
drivers/usb/dwc3/gadget.c:1073: undefined reference to `usb_gadget_map_request'
drivers/built-in.o: In function `dwc3_gadget_reset_interrupt':
drivers/usb/dwc3/gadget.c:2165: undefined reference to `usb_gadget_set_state'
drivers/built-in.o: In function `dwc3_gadget_init':
drivers/usb/dwc3/gadget.c:2647: undefined reference to `usb_add_gadget_udc'
drivers/built-in.o: In function `dwc3_gadget_exit':
drivers/usb/dwc3/gadget.c:2681: undefined reference to `usb_del_gadget_udc'
drivers/built-in.o: In function `__dwc3_ep0_do_control_data':
drivers/usb/dwc3/ep0.c:929: undefined reference to `usb_gadget_map_request'
drivers/usb/dwc3/ep0.c:906: undefined reference to `usb_gadget_map_request'
drivers/built-in.o: In function `dwc3_ep0_set_config':
drivers/usb/dwc3/ep0.c:575: undefined reference to `usb_gadget_set_state'
drivers/built-in.o: In function `dwc3_ep0_set_address':
drivers/usb/dwc3/ep0.c:520: undefined reference to `usb_gadget_set_state'
drivers/usb/dwc3/ep0.c:522: undefined reference to `usb_gadget_set_state'
drivers/built-in.o: In function `dwc3_ep0_set_config':
drivers/usb/dwc3/ep0.c:556: undefined reference to `usb_gadget_set_state'

Making changes similar to patch:
71a5e61 usb: chipidea: fix and improve dependencies if usb host or gadget support is built as module

Let us limit the DWC3 mode to depend on corresponding usb-subsystem
and USB_DWC3.

Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-05-15 17:26:00 +03:00
..
Kconfig usb: dwc3: Fix compilation break when building with USB_DWC3_DUAL_ROLE=y 2013-05-15 17:26:00 +03:00
Makefile usb: dwc3: remove dwc3 dependency on host AND gadget. 2013-01-18 14:55:55 +02:00
core.c usb: dwc3: add CONFIG_PM_SLEEP to suspend/resume functions 2013-04-02 11:42:51 +03:00
core.h usb: dwc3: core: fix wrong OTG event regitser offset 2013-03-18 11:18:13 +02:00
debug.h usb: dwc: remove "All rights reserved" statement. 2011-10-04 10:25:52 -07:00
debugfs.c usb: dwc3: core: fix wrong OTG event regitser offset 2013-03-18 11:18:13 +02:00
dwc3-exynos.c usb: dwc3: add CONFIG_PM_SLEEP to suspend/resume functions 2013-04-02 11:42:51 +03:00
dwc3-omap.c usb: dwc3: add CONFIG_PM_SLEEP to suspend/resume functions 2013-04-02 11:42:51 +03:00
dwc3-pci.c usb: dwc3: pci: add basic suspend/resume support 2013-03-18 11:17:03 +02:00
ep0.c usb: dwc3: remove our homebrew state mechanism 2013-03-18 11:17:13 +02:00
gadget.c usb: dwc3: gadget: use num_(in|out)_eps from HW params 2013-03-18 11:18:02 +02:00
gadget.h usb: dwc3: correct set_halt implementation for ep0 2012-07-02 10:02:07 +03:00
host.c usb: dwc3: host: Change platform device ID for xhci-hcd to AUTO 2013-01-25 13:19:52 +02:00
io.h usb: dwc3: core: split host address space 2012-04-24 15:37:04 +03:00