From: Venu Byravarasu Date: Wed, 3 Apr 2013 10:41:12 +0000 (+0530) Subject: usb: host: tegra: Reset Tegra USB controller before init X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eb5369edca4f4307a6035dc6f6813698b0762906;p=linux-beck.git usb: host: tegra: Reset Tegra USB controller before init To clear any configurations made by U-Boot on Tegra USB controller, reset it before init in probe. Signed-off-by: Venu Byravarasu Acked-by: Alan Stern reviewed-by: Stephen Warren Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 568aecc7075b..83d190a1cafd 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -28,6 +28,7 @@ #include #include #include +#include #define TEGRA_USB_BASE 0xC5000000 #define TEGRA_USB2_BASE 0xC5004000 @@ -691,6 +692,10 @@ static int tegra_ehci_probe(struct platform_device *pdev) if (err) goto fail_clk; + tegra_periph_reset_assert(tegra->clk); + udelay(1); + tegra_periph_reset_deassert(tegra->clk); + tegra->needs_double_reset = of_property_read_bool(pdev->dev.of_node, "nvidia,needs-double-reset");