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