]> xenbits.xensource.com Git - people/julieng/linux-arm.git/commitdiff
ARM: tegra: usb no reset
authorPeter Robinson <pbrobinson@gmail.com>
Thu, 3 May 2012 19:27:11 +0000 (20:27 +0100)
committerJulien Grall <julien.grall@citrix.com>
Fri, 18 Sep 2015 15:29:26 +0000 (16:29 +0100)
Patch for disconnect issues with storage attached to a
 tegra-ehci controller

drivers/usb/core/hub.c

index 73dfa194160b78fba6bec233b667b00bceac6cb1..29c23e5eb8678fc0bff570444d4aac4875cf05d9 100644 (file)
@@ -4996,6 +4996,13 @@ static void hub_event(struct work_struct *work)
                        (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);