[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1404436179-10745-1-git-send-email-ttynkkynen@nvidia.com>
Date: Fri, 4 Jul 2014 04:09:35 +0300
From: Tuomas Tynkkynen <ttynkkynen@...dia.com>
To: Alan Stern <stern@...land.harvard.edu>
Cc: Stephen Warren <swarren@...dotorg.org>,
Thierry Reding <thierry.reding@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Felipe Balbi <balbi@...com>, linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-usb@...r.kernel.org, devicetree@...r.kernel.org,
Tuomas Tynkkynen <ttynkkynen@...dia.com>
Subject: [PATCH v2 0/4] Tegra USB probe order issue fix
Hi all,
Here's a second version of the probe order issue series. This time I've
added the USB1 resets to the PHYs, thus replacing the really ugly parts
with something slightly better. Old device trees will still probe
successfully, but instead of this bugfix they'll get a dev_warn().
The reset control patch was dropped, as a similar patch from someone
else has landed in linux-next.
For a recap of the issue from the previous series:
Basically, the register area of the 1st USB controller contains some
registers that are global to all of the controllers, but that are also
cleared when reset is asserted to the 1st controller. So if (say) the
3rd controller would be the first one to finish probing successfully,
then the reset that happens during the 1st controller's probe would
result in broken USB. So the before doing anything with the USB HW,
we should reset the 1st controller once, and then never ever reset
it again.
While testing that the 1st USB controller still works without a reset
when the driver is unbound and bound again, I discovered an unbalanced
regulator_disable + clk_disable_unprepare in the PHY code if the EHCI
driver is unbound and rebound. This is fixed in patch 4.
Thanks,
Tuomas.
Tuomas Tynkkynen (4):
USB: tegra: Add resets & has-utmi-pad-registers flag to the PHY
binding
ARM: tegra: Add resets & has-utmi-pad-registers flag to all USB PHYs
USB: EHCI: tegra: Fix probe order issue leading to broken USB
USB: PHY: tegra: Call tegra_usb_phy_close only on device removal
.../bindings/usb/nvidia,tegra20-usb-phy.txt | 8 +++
arch/arm/boot/dts/tegra114.dtsi | 5 ++
arch/arm/boot/dts/tegra124.dtsi | 7 +++
arch/arm/boot/dts/tegra20.dtsi | 7 +++
arch/arm/boot/dts/tegra30.dtsi | 7 +++
drivers/usb/host/ehci-tegra.c | 62 +++++++++++++++++++-
drivers/usb/phy/phy-tegra-usb.c | 8 +--
7 files changed, 96 insertions(+), 8 deletions(-)
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists