public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] USB: host: tegra: CONFIG_USB_EHCI_TEGRA requires ULPI and ULPI viewport support
@ 2013-10-04  6:02 Paul Walmsley
  2013-10-04 16:04 ` Stephen Warren
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Walmsley @ 2013-10-04  6:02 UTC (permalink / raw)
  To: linux-usb-u79uwXL29TY76Z2rM5mHXA; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA


Selecting CONFIG_USB_EHCI_TEGRA requires CONFIG_USB_ULPI_VIEWPORT.
Otherwise the build can break with:

drivers/usb/phy/phy-tegra-usb.c: In function 'ulpi_open':
drivers/usb/phy/phy-tegra-usb.c:689:31: error: 'ulpi_viewport_access_ops' undeclared (first use in this function)
drivers/usb/phy/phy-tegra-usb.c:689:31: note: each undeclared identifier is reported only once for each function it appears in

if CONFIG_USB_ULPI_VIEWPORT is not manually selected.

Fix by forcing CONFIG_USB_ULPI_VIEWPORT to be selected when
CONFIG_USB_EHCI_TEGRA is selected.  Then, since CONFIG_USB_ULPI_VIEWPORT
requires CONFIG_USB_ULPI to be selected, add that too.

N.B.: ULPI is deprecated on this controller for T114, so it might make 
sense to split the ULPI support code into a separate file, compiled only 
if a ULPI PHY is selected.

Signed-off-by: Paul Walmsley <pwalmsley-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: <stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
---

Observed while building the stable kernels v3.11.[123] with a T114-only 
Kconfig.

  drivers/usb/host/Kconfig | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index 4263d01..81b9d34 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -202,6 +202,8 @@ config USB_EHCI_TEGRA
         depends on ARCH_TEGRA
         select USB_EHCI_ROOT_HUB_TT
         select USB_PHY
+       select USB_ULPI
+       select USB_ULPI_VIEWPORT
         help
           This driver enables support for the internal USB Host Controllers
           found in NVIDIA Tegra SoCs. The controllers are EHCI compliant.
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-04 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-04  6:02 [PATCH] USB: host: tegra: CONFIG_USB_EHCI_TEGRA requires ULPI and ULPI viewport support Paul Walmsley
2013-10-04 16:04 ` Stephen Warren
     [not found]   ` <524EE6F5.9020109-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-10-04 19:30     ` Paul Walmsley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox