projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6604a7
)
usb: host: tegra: Reset Tegra USB controller before init
author
Venu Byravarasu
<
[email protected]
>
Wed, 3 Apr 2013 10:41:12 +0000
(16:11 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 3 Apr 2013 18:40:59 +0000
(11:40 -0700)
To clear any configurations made by U-Boot on Tegra USB controller,
reset it before init in probe.
Signed-off-by: Venu Byravarasu <
[email protected]
>
Acked-by: Alan Stern <
[email protected]
>
reviewed-by: Stephen Warren <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/host/ehci-tegra.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ehci-tegra.c
b/drivers/usb/host/ehci-tegra.c
index 568aecc7075b4d345bc59bb033570c6e034b9ebc..83d190a1cafd19a56db4dcb52072beaaa93bc96a 100644
(file)
--- a/
drivers/usb/host/ehci-tegra.c
+++ b/
drivers/usb/host/ehci-tegra.c
@@
-28,6
+28,7
@@
#include <linux/pm_runtime.h>
#include <linux/usb/ehci_def.h>
#include <linux/usb/tegra_usb_phy.h>
+#include <linux/clk/tegra.h>
#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");