Blame SOURCES/0001-ARM-tegra-usb-no-reset.patch
|
Justin Vreeland |
794d92 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
Justin Vreeland |
794d92 |
From: Peter Robinson <pbrobinson@gmail.com>
|
|
Justin Vreeland |
794d92 |
Date: Thu, 3 May 2012 20:27:11 +0100
|
|
Justin Vreeland |
794d92 |
Subject: [PATCH] ARM: tegra: usb no reset
|
|
Justin Vreeland |
794d92 |
|
|
Justin Vreeland |
794d92 |
Patch for disconnect issues with storage attached to a
|
|
Justin Vreeland |
794d92 |
tegra-ehci controller
|
|
Justin Vreeland |
794d92 |
---
|
|
Justin Vreeland |
794d92 |
drivers/usb/core/hub.c | 7 +++++++
|
|
Justin Vreeland |
794d92 |
1 file changed, 7 insertions(+)
|
|
Justin Vreeland |
794d92 |
|
|
Justin Vreeland |
794d92 |
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
|
|
Justin Vreeland |
794d92 |
index 052d5accfe9b..fac58cf619da 100644
|
|
Justin Vreeland |
794d92 |
--- a/drivers/usb/core/hub.c
|
|
Justin Vreeland |
794d92 |
+++ b/drivers/usb/core/hub.c
|
|
Justin Vreeland |
794d92 |
@@ -5517,6 +5517,13 @@ static void hub_event(struct work_struct *work)
|
|
Justin Vreeland |
794d92 |
(u16) hub->change_bits[0],
|
|
Justin Vreeland |
794d92 |
(u16) hub->event_bits[0]);
|
|
Justin Vreeland |
794d92 |
|
|
Justin Vreeland |
794d92 |
+ /* Don't disconnect USB-SATA on TrimSlice */
|
|
Justin Vreeland |
794d92 |
+ if (strcmp(dev_name(hdev->bus->controller), "tegra-ehci.0") == 0) {
|
|
Justin Vreeland |
794d92 |
+ if ((hdev->state == 7) && (hub->change_bits[0] == 0) &&
|
|
Justin Vreeland |
794d92 |
+ (hub->event_bits[0] == 0x2))
|
|
Justin Vreeland |
794d92 |
+ hub->event_bits[0] = 0;
|
|
Justin Vreeland |
794d92 |
+ }
|
|
Justin Vreeland |
794d92 |
+
|
|
Justin Vreeland |
794d92 |
/* Lock the device, then check to see if we were
|
|
Justin Vreeland |
794d92 |
* disconnected while waiting for the lock to succeed. */
|
|
Justin Vreeland |
794d92 |
usb_lock_device(hdev);
|
|
Justin Vreeland |
794d92 |
--
|
|
Justin Vreeland |
794d92 |
2.28.0
|
|
Justin Vreeland |
794d92 |
|