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