linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Osipenko <digetx@gmail.com>
To: Thierry Reding <thierry.reding@gmail.com>,
	Jonathan Hunter <jonathanh@nvidia.com>,
	Felipe Balbi <balbi@kernel.org>,
	Alan Stern <stern@rowland.harvard.edu>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org, linux-tegra@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v3 0/3] Tegra's USB driver dependency fix
Date: Tue, 10 Apr 2018 01:02:56 +0300	[thread overview]
Message-ID: <cover.1523307883.git.digetx@gmail.com> (raw)

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


             reply	other threads:[~2018-04-09 22:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-09 22:02 Dmitry Osipenko [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1523307883.git.digetx@gmail.com \
    --to=digetx@gmail.com \
    --cc=balbi@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jonathanh@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).