2014-08-20 17:22:24 +00:00
|
|
|
From: Peter Robinson <pbrobinson@gmail.com>
|
|
|
|
Date: Thu, 3 May 2012 20:27:11 +0100
|
|
|
|
Subject: [PATCH] ARM: tegra: usb no reset
|
|
|
|
|
|
|
|
Patch for disconnect issues with storage attached to a
|
|
|
|
tegra-ehci controller
|
|
|
|
---
|
|
|
|
drivers/usb/core/hub.c | 7 +++++++
|
|
|
|
1 file changed, 7 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
|
2015-02-16 15:01:09 +00:00
|
|
|
index d7c3d5a35946..a1121fc01e8c 100644
|
2014-08-20 17:22:24 +00:00
|
|
|
--- a/drivers/usb/core/hub.c
|
|
|
|
+++ b/drivers/usb/core/hub.c
|
2015-02-16 15:01:09 +00:00
|
|
|
@@ -5006,6 +5006,13 @@ static void hub_event(struct work_struct *work)
|
2014-10-08 16:10:10 +00:00
|
|
|
(u16) hub->change_bits[0],
|
|
|
|
(u16) hub->event_bits[0]);
|
2014-08-20 17:22:24 +00:00
|
|
|
|
2014-10-08 16:10:10 +00:00
|
|
|
+ /* Don't disconnect USB-SATA on TrimSlice */
|
|
|
|
+ if (strcmp(dev_name(hdev->bus->controller), "tegra-ehci.0") == 0) {
|
|
|
|
+ if ((hdev->state == 7) && (hub->change_bits[0] == 0) &&
|
|
|
|
+ (hub->event_bits[0] == 0x2))
|
|
|
|
+ hub->event_bits[0] = 0;
|
|
|
|
+ }
|
2014-08-20 17:22:24 +00:00
|
|
|
+
|
2014-10-08 16:10:10 +00:00
|
|
|
/* Lock the device, then check to see if we were
|
|
|
|
* disconnected while waiting for the lock to succeed. */
|
|
|
|
usb_lock_device(hdev);
|
2014-08-20 17:22:24 +00:00
|
|
|
--
|
2014-12-09 14:25:39 +00:00
|
|
|
2.1.0
|
2014-08-20 17:22:24 +00:00
|
|
|
|