fedoraproject@6speed.de / rpms / kernel

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