fanghuilin / rpms / kernel

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