[PATCH 1/1] Fix SATA drive failure on Ubuntu 9.10 installation

Bryan Wu bryan.wu at canonical.com
Tue Dec 1 09:32:42 UTC 2009


From: Dinh Nguyen <r00091 at freescale.com>

BugLink: https://bugs.launchpad.net/bug/431963

Signed-off-by: Bryan Wu <bryan.wu at canonical.com>
---
 drivers/usb/storage/usb.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index 8060b85..11dd37d 100644
--- a/drivers/usb/storage/usb.c
+++ b/drivers/usb/storage/usb.c
@@ -329,8 +329,11 @@ static int usb_stor_control_thread(void * __us)
 
 		/* we've got a command, let's do it! */
 		else {
-			US_DEBUG(usb_stor_show_command(us->srb));
-			us->proto_handler(us->srb, us);
+			US_DEBUGP(usb_stor_show_command(us->srb));
+#ifdef CONFIG_MACH_MX51_BABBAGE
+			if (us->srb->cmnd[0] != 0x85)
+#endif
+				us->proto_handler(us->srb, us);
 		}
 
 		/* lock access to the state */
-- 
1.6.3.3





More information about the kernel-team mailing list