[U-Boot] [PATCH] remove usb_test_unit_ready from usb_stor_read+usb_stor_write

James Shimer jamesshimer at msn.com
Tue Jul 31 09:55:04 CEST 2012


From: Jim Shimer <jamesshimer at motorola.com>

---
 common/usb_storage.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/common/usb_storage.c b/common/usb_storage.c
index bdc306f..c5c37a4 100644
--- a/common/usb_storage.c
+++ b/common/usb_storage.c
@@ -1074,12 +1074,14 @@ unsigned long usb_stor_read(int device, unsigned long blknr,
 	buf_addr = (unsigned long)buffer;
 	start = blknr;
 	blks = blkcnt;
+#if 0
 	if (usb_test_unit_ready(srb, ss)) {
 		printf("Device NOT ready\n   Request Sense returned %02X %02X"
 		       " %02X\n", srb->sense_buf[2], srb->sense_buf[12],
 		       srb->sense_buf[13]);
 		return 0;
 	}
+#endif
 
 	USB_STOR_PRINTF("\nusb_read: dev %d startblk %lx, blccnt %lx"
 			" buffer %lx\n", device, start, blks, buf_addr);
@@ -1153,12 +1155,14 @@ unsigned long usb_stor_write(int device, unsigned long blknr,
 	buf_addr = (unsigned long)buffer;
 	start = blknr;
 	blks = blkcnt;
+#if 0
 	if (usb_test_unit_ready(srb, ss)) {
 		printf("Device NOT ready\n   Request Sense returned %02X %02X"
 		       " %02X\n", srb->sense_buf[2], srb->sense_buf[12],
 			srb->sense_buf[13]);
 		return 0;
 	}
+#endif
 
 	USB_STOR_PRINTF("\nusb_write: dev %d startblk %lx, blccnt %lx"
 			" buffer %lx\n", device, start, blks, buf_addr);
-- 
1.7.9.5



More information about the U-Boot mailing list