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>
This commit is contained in:
parent
3bb6ee8dd5
commit
35c0475a6d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue