linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Tegra's USB driver dependency fix
@ 2018-04-09 22:02 Dmitry Osipenko
  2018-04-09 22:02 ` [PATCH v3 1/3] usb: phy: tegra: Cleanup error messages Dmitry Osipenko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dmitry Osipenko @ 2018-04-09 22:02 UTC (permalink / raw)
  To: Thierry Reding, Jonathan Hunter, Felipe Balbi, Alan Stern,
	Greg Kroah-Hartman
  Cc: linux-usb, linux-tegra, linux-kernel

Tegra uses two different USB drivers for host / device controllers, one is
tegra-ehci (host) and other is ChipIdea (UDC). Currently ChipIdea driver
implicitly (and incorrectly) depends on Tegra's EHCI driver because Tegra's
PHY driver is built only when host driver is built, also host controller
shares HW resets with the device controller and host driver manages the
resets solely. This small series fixes the dependency by moving out reset
controls to the PHY driver and making them shared, then the driver build
dependency is resolved.

Changelog:

v3:
        Fixed Tegra's EHCI driver dependency on functions exported by the
        Tegra's PHY driver (was reported by "kbuild test robot" for v2) by
        making host driver to select the PHY driver in Kconfig.

v2:
        Added missed USB_ULPI dependency to USB_TEGRA_PHY.

        Corrected UTMI pads reset by moving reset assert/deassert to the
        PHY's probe.

        Removed function names as per Thierry's suggestion.

Dmitry Osipenko (3):
  usb: phy: tegra: Cleanup error messages
  usb: tegra: Move utmi-pads reset from ehci-tegra to tegra-phy
  usb: phy: Add Kconfig entry for Tegra PHY driver

 drivers/usb/host/Kconfig          |   4 +-
 drivers/usb/host/ehci-tegra.c     |  87 +++++++++++------------
 drivers/usb/phy/Kconfig           |   9 +++
 drivers/usb/phy/Makefile          |   2 +-
 drivers/usb/phy/phy-tegra-usb.c   | 140 ++++++++++++++++++++++++++++++--------
 include/linux/usb/tegra_usb_phy.h |   2 +
 6 files changed, 163 insertions(+), 81 deletions(-)

-- 
2.16.3


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

end of thread, other threads:[~2018-04-09 22:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-09 22:02 [PATCH v3 0/3] Tegra's USB driver dependency fix Dmitry Osipenko
2018-04-09 22:02 ` [PATCH v3 1/3] usb: phy: tegra: Cleanup error messages Dmitry Osipenko
2018-04-09 22:02 ` [PATCH v3 2/3] usb: tegra: Move utmi-pads reset from ehci-tegra to tegra-phy Dmitry Osipenko
2018-04-09 22:02 ` [PATCH v3 3/3] usb: phy: Add Kconfig entry for Tegra PHY driver Dmitry Osipenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).