summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDinh Nguyen <r00091@freescale.com>2009-12-11 11:08:45 +0800
committerJustin Waters <justin.waters@timesys.com>2010-12-13 16:09:20 -0500
commit5a186b9dfaf044e2c495c330e6e201f583846a6e (patch)
tree8cd7777ffee22d07f50d395346b86ac0f1df432c
parent21cc98adc78753d0d0d9d24855983b123efe7f62 (diff)
ENGR00118363 Fix SATA drive failure on Ubuntu 9.10
Fix SATA drive failure on Ubuntu 9.10 BugLink: https://bugs.launchpad.net/bugs/431963 Signed-off-by: Dinh Nguyen <r00091@freescale.com>
-rw-r--r--drivers/usb/storage/usb.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index a7d0bf9d92a7..dd9ec0bd6aa3 100644
--- a/drivers/usb/storage/usb.c
+++ b/drivers/usb/storage/usb.c
@@ -334,8 +334,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 */