add patch fro tegra systems so that usb-storage doesnt reset and rootfs fdoesnt drop out, this needs a better fix.

This commit is contained in:
Dennis Gilmore 2011-12-15 12:00:04 -06:00
parent 01b44d5ba0
commit 1462c71ad9
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
From 6b0cbdfaf589e6f39ab7588ed1047d1a55224eb9 Mon Sep 17 00:00:00 2001
From: Mike Rapoport <mike@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

View File

@ -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
#