4b72251
From 03a5e1c71e5bfadd47326b6eb1052da2d887b950 Mon Sep 17 00:00:00 2001
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
6a91557
index 8a4dcbc7a75f..8ab01fbcc6a9 100644
6a91557
--- a/drivers/usb/core/hub.c
6a91557
+++ b/drivers/usb/core/hub.c
6a91557
@@ -5031,6 +5031,13 @@ static void hub_events(void)
6a91557
 				(u16) hub->change_bits[0],
6a91557
 				(u16) hub->event_bits[0]);
6a91557
 
6a91557
+		/* Don't disconnect USB-SATA on TrimSlice */
6a91557
+		if (strcmp(dev_name(hdev->bus->controller), "tegra-ehci.0") == 0) {
6a91557
+			if ((hdev->state == 7) && (hub->change_bits[0] == 0) &&
6a91557
+			    (hub->event_bits[0] == 0x2))
6a91557
+				hub->event_bits[0] = 0;
6a91557
+		}
6a91557
+
6a91557
 		/* Lock the device, then check to see if we were
6a91557
 		 * disconnected while waiting for the lock to succeed. */
6a91557
 		usb_lock_device(hdev);
6a91557
-- 
6a91557
1.9.3
6a91557