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