[kernel/f15] add patch fro tegra systems so that usb-storage doesnt reset and rootfs fdoesnt drop out, this needs
Dennis Gilmore
ausil at fedoraproject.org
Thu Dec 15 18:03:13 UTC 2011
commit 1462c71ad97a4af1a69d0f9edfcb94b7df0b2021
Author: Dennis Gilmore <dennis at ausil.us>
Date: Thu Dec 15 12:00:04 2011 -0600
add patch fro tegra systems so that usb-storage doesnt reset and rootfs fdoesnt drop out, this needs a better fix.
arm-tegra-usb-no-reset.patch | 29 +++++++++++++++++++++++++++++
kernel.spec | 2 ++
2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/arm-tegra-usb-no-reset.patch b/arm-tegra-usb-no-reset.patch
new file mode 100644
index 0000000..2cb028e
--- /dev/null
+++ b/arm-tegra-usb-no-reset.patch
@@ -0,0 +1,29 @@
+From 6b0cbdfaf589e6f39ab7588ed1047d1a55224eb9 Mon Sep 17 00:00:00 2001
+From: Mike Rapoport <mike at compulab.co.il>
+Date: Mon, 11 Apr 2011 10:33:20 +0300
+Subject: [PATCH] BUGFIX: don't allow disconnection of USB-SATA on TrimSlice
+
+---
+ drivers/usb/core/hub.c | 7 +++++++
+ 1 files changed, 7 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
+index 566c183..74b5165 100644
+--- a/drivers/usb/core/hub.c
++++ b/drivers/usb/core/hub.c
+@@ -3263,6 +3263,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.7.6
diff --git a/kernel.spec b/kernel.spec
index 6052844..fe4620e 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -675,6 +675,7 @@ Patch20000: utrace.patch
# Flattened devicetree support
Patch21000: arm-omap-dt-compat.patch
Patch21001: arm-smsc-support-reading-mac-address-from-device-tree.patch
+Patch21002: arm-tegra-usb-no-reset.patch
#rhbz #735946
Patch21020: 0001-mm-vmscan-Limit-direct-reclaim-for-higher-order-allo.patch
@@ -1140,6 +1141,7 @@ ApplyOptionalPatch linux-2.6-upstream-reverts.patch -R
#
ApplyPatch arm-omap-dt-compat.patch
ApplyPatch arm-smsc-support-reading-mac-address-from-device-tree.patch
+ApplyPatch arm-tegra-usb-no-reset.patch
ApplyPatch taint-vbox.patch
#
More information about the scm-commits
mailing list