summaryrefslogtreecommitdiffstats
path: root/freed-ora/current/master/ARM-tegra-usb-no-reset.patch
diff options
context:
space:
mode:
authorAlexandre Oliva <lxoliva@fsfla.org>2014-09-29 12:45:09 +0000
committerAlexandre Oliva <lxoliva@fsfla.org>2014-09-29 12:45:09 +0000
commite1e11e604b9f1796cf650088a731747646f417db (patch)
tree8a9af1b604e66ba706bdc4962c3dd3da68a4fedb /freed-ora/current/master/ARM-tegra-usb-no-reset.patch
parent0980356aca0c6506a28b7c4cdacbbf19883f43e5 (diff)
downloadlinux-libre-raptor-e1e11e604b9f1796cf650088a731747646f417db.tar.gz
linux-libre-raptor-e1e11e604b9f1796cf650088a731747646f417db.zip
3.17.0-0.rc6.git0.1.fc22.gnu
Diffstat (limited to 'freed-ora/current/master/ARM-tegra-usb-no-reset.patch')
-rw-r--r--freed-ora/current/master/ARM-tegra-usb-no-reset.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/freed-ora/current/master/ARM-tegra-usb-no-reset.patch b/freed-ora/current/master/ARM-tegra-usb-no-reset.patch
new file mode 100644
index 000000000..871b1fc6b
--- /dev/null
+++ b/freed-ora/current/master/ARM-tegra-usb-no-reset.patch
@@ -0,0 +1,32 @@
+From 85495164fa6363ffb1879d32a030631bd5a912a3 Mon Sep 17 00:00:00 2001
+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
+index d481c99a20d7..6050143ce7ec 100644
+--- a/drivers/usb/core/hub.c
++++ b/drivers/usb/core/hub.c
+@@ -5036,6 +5036,13 @@ static void hub_events(void)
+ (u16) hub->change_bits[0],
+ (u16) hub->event_bits[0]);
+
++ /* 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;
++ }
++
+ /* Lock the device, then check to see if we were
+ * disconnected while waiting for the lock to succeed. */
+ usb_lock_device(hdev);
+--
+1.9.3
+
OpenPOWER on IntegriCloud