9
0
Fork 0

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:
Michael Grzeschik 2011-12-06 17:10:11 +01:00 committed by Sascha Hauer
parent 3bb6ee8dd5
commit 35c0475a6d
1 changed files with 2 additions and 2 deletions

View File

@ -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);