diff options
author | Douglas Gilbert <dougg@torque.net> | 2004-08-17 17:30:37 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2004-08-17 17:30:37 -0400 |
commit | 7d1874187a6d6e18012dc55858aca58ebe06f3c4 (patch) | |
tree | ab144cd8d091ad3b21ff2cb28ccff3948e0f5257 /drivers | |
parent | d413da79086f7a9e532333d4815a021405c95ea2 (diff) | |
download | history-7d1874187a6d6e18012dc55858aca58ebe06f3c4.tar.gz |
[libata] fix INQUIRY handling
Changes:
- send vendor, product and rev strings back for 36 byte
INQUIRYs
- set the additional length field to indicate 96 byte
response is available
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c index 1a206ff628fb7b..a01ed8974d2208 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c @@ -690,7 +690,7 @@ unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf, 0, 0x5, /* claim SPC-3 version compatibility */ 2, - 96 - 4 + 95 - 4 }; /* set scsi removeable (RMB) bit per ata bit */ @@ -701,7 +701,7 @@ unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf, memcpy(rbuf, hdr, sizeof(hdr)); - if (buflen > 36) { + if (buflen > 35) { memcpy(&rbuf[8], "ATA ", 8); ata_dev_id_string(dev, &rbuf[16], ATA_ID_PROD_OFS, 16); ata_dev_id_string(dev, &rbuf[32], ATA_ID_FW_REV_OFS, 4); |