j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Mon Jan 21 00:49:14 2013 New Revision: 1093 URL: http://tracker.coreboot.org/trac/openbios/changeset/1093
Log: esp.c: fix TEST_UNIT_READY SCSI command length.
"TEST UNIT READY" is a 6 bytes SCSI command (00h/LUN/reserved/reserved/reserved/Control) and it is preceded by a IDENTIFY (0x80) message_out byte. The ESP transfer size is therefore 7 bytes.
Signed-off-by: Olivier DANET odanet@caramail.com Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/drivers/esp.c
Modified: trunk/openbios-devel/drivers/esp.c ============================================================================== --- trunk/openbios-devel/drivers/esp.c Thu Jan 17 00:05:39 2013 (r1092) +++ trunk/openbios-devel/drivers/esp.c Mon Jan 21 00:49:14 2013 (r1093) @@ -197,11 +197,11 @@ test_unit_ready(esp_private_t *esp, sd_private_t *sd) { /* Setup command = Test Unit Ready */ - memset(esp->buffer, 0, 6); + memset(esp->buffer, 0, 7); esp->buffer[0] = 0x80; esp->buffer[1] = TEST_UNIT_READY;
- if (do_command(esp, sd, 6, 0)) { + if (do_command(esp, sd, 7, 0)) { DPRINTF("test_unit_ready id %d failed\n", sd->id); return 0; }