diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2011-12-06 17:10:11 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-07 09:39:12 +0100 |
commit | 35c0475a6d85cbbc2ca3ff526c330dceee0c2215 (patch) | |
tree | 9f8f58b4b3c5640ccb049c700ecb1f4c2b412006 | |
parent | 3bb6ee8dd530d01724ceb7c3d5bb68bd1898726a (diff) | |
download | barebox-35c0475a6d85cbbc2ca3ff526c330dceee0c2215.tar.gz barebox-35c0475a6d85cbbc2ca3ff526c330dceee0c2215.tar.xz |
storage/usb.c: fix test_unit_ready
This is needed for the ohci-at91 to work.
In u-boot this function was transmitting a cmdlen of 12, by the initial
commit. There are similar functions like usb_request_sense,
usb_read_capacity nearby which also transmit 12 byte per default on
u-boot, which probably also need a fix.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/usb/storage/usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index ef07c54d60..865ba8ec47 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c @@ -96,8 +96,8 @@ static int usb_stor_test_unit_ready(ccb *srb, struct us_data *us) retries = 10; do { US_DEBUGP("SCSI_TST_U_RDY\n"); - memset(&srb->cmd[0], 0, 6); - srb->cmdlen = 6; + memset(&srb->cmd[0], 0, 12); + srb->cmdlen = 12; srb->cmd[0] = SCSI_TST_U_RDY; srb->datalen = 0; result = us->transport(srb, us); |