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