summaryrefslogtreecommitdiff
path: root/common/usb_storage.c
diff options
context:
space:
mode:
authorJim Shimer <jamesshimer@motorola.com>2012-07-30 22:11:28 -0400
committerMarek Vasut <marex@denx.de>2012-09-01 16:21:52 +0200
commitb7006958ea367394e39e82532317a44491ed52ac (patch)
tree51aa1f45c01df5facc2997a3467c42d931deaafe /common/usb_storage.c
parentdb19134615dda7e4b0b511c65e92507ab0a530d6 (diff)
usb: Optimize USB storage read/write
Trim down the IO times by removing uneeded test unit reeady calls. Signed-off-by: Jim Shimer <mgi2475@motorola.com>
Diffstat (limited to 'common/usb_storage.c')
-rw-r--r--common/usb_storage.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/common/usb_storage.c b/common/usb_storage.c
index ccfe811eebb..4aeed827c1e 100644
--- a/common/usb_storage.c
+++ b/common/usb_storage.c
@@ -1083,12 +1083,6 @@ unsigned long usb_stor_read(int device, unsigned long blknr,
buf_addr = (unsigned long)buffer;
start = blknr;
blks = blkcnt;
- 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;
- }
USB_STOR_PRINTF("\nusb_read: dev %d startblk %lx, blccnt %lx"
" buffer %lx\n", device, start, blks, buf_addr);
@@ -1161,12 +1155,6 @@ unsigned long usb_stor_write(int device, unsigned long blknr,
buf_addr = (unsigned long)buffer;
start = blknr;
blks = blkcnt;
- 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;
- }
USB_STOR_PRINTF("\nusb_write: dev %d startblk %lx, blccnt %lx"
" buffer %lx\n", device, start, blks, buf_addr);