dbc4a9b
From: Peter Robinson <pbrobinson@gmail.com>
dbc4a9b
Date: Thu, 3 May 2012 20:27:11 +0100
dbc4a9b
Subject: [PATCH] ARM: tegra: usb no reset
dbc4a9b
dbc4a9b
Patch for disconnect issues with storage attached to a
dbc4a9b
 tegra-ehci controller
dbc4a9b
---
dbc4a9b
 drivers/usb/core/hub.c | 7 +++++++
dbc4a9b
 1 file changed, 7 insertions(+)
dbc4a9b
dbc4a9b
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
f692dd0
index b4bfa3ac4b12..1753af78b2b2 100644
dbc4a9b
--- a/drivers/usb/core/hub.c
dbc4a9b
+++ b/drivers/usb/core/hub.c
f692dd0
@@ -5021,6 +5021,13 @@ static void hub_event(struct work_struct *work)
c1b14f5
 			(u16) hub->change_bits[0],
c1b14f5
 			(u16) hub->event_bits[0]);
dbc4a9b
 
c1b14f5
+	/* Don't disconnect USB-SATA on TrimSlice */
c1b14f5
+	if (strcmp(dev_name(hdev->bus->controller), "tegra-ehci.0") == 0) {
c1b14f5
+		if ((hdev->state == 7) && (hub->change_bits[0] == 0) &&
c1b14f5
+				(hub->event_bits[0] == 0x2))
c1b14f5
+			hub->event_bits[0] = 0;
c1b14f5
+	}
dbc4a9b
+
c1b14f5
 	/* Lock the device, then check to see if we were
c1b14f5
 	 * disconnected while waiting for the lock to succeed. */
c1b14f5
 	usb_lock_device(hdev);
dbc4a9b
-- 
c47527a
2.1.0
dbc4a9b