From: Peter Robinson Date: Thu, 3 May 2012 19:27:11 +0000 (+0100) Subject: ARM: tegra: usb no reset X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ba84078a3d92eb79d41ee3e9ca107c86430d0b8a;p=people%2Fjulieng%2Flinux-arm.git ARM: tegra: usb no reset Patch for disconnect issues with storage attached to a tegra-ehci controller --- diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 73dfa194160b..29c23e5eb867 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -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);