diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2006-01-03 10:59:55 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-01-03 10:59:55 -0500 |
commit | 02f693c7118f6be9e677070eb630c1f3a654cdd3 (patch) | |
tree | b5493c816a1f76a01319a84955c5ba07d47517c3 /drivers/scsi/libata-scsi.c | |
parent | e7fb585940a3dc87a42ebc30a62296e5cf6f9cd5 (diff) | |
parent | a18ceba7b40e24a9da87249bd74f16ea5abd6894 (diff) |
Merge branch 'upstream'
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r-- | drivers/scsi/libata-scsi.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c index 665ce382eb23..094c9c88a095 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c | |||
@@ -2040,7 +2040,7 @@ static int atapi_qc_complete(struct ata_queued_cmd *qc) | |||
2040 | else { | 2040 | else { |
2041 | u8 *scsicmd = cmd->cmnd; | 2041 | u8 *scsicmd = cmd->cmnd; |
2042 | 2042 | ||
2043 | if (scsicmd[0] == INQUIRY) { | 2043 | if ((scsicmd[0] == INQUIRY) && ((scsicmd[1] & 0x03) == 0)) { |
2044 | u8 *buf = NULL; | 2044 | u8 *buf = NULL; |
2045 | unsigned int buflen; | 2045 | unsigned int buflen; |
2046 | 2046 | ||
@@ -2054,9 +2054,6 @@ static int atapi_qc_complete(struct ata_queued_cmd *qc) | |||
2054 | * device. 2) Ensure response data format / ATAPI information | 2054 | * device. 2) Ensure response data format / ATAPI information |
2055 | * are always correct. | 2055 | * are always correct. |
2056 | */ | 2056 | */ |
2057 | /* FIXME: do we ever override EVPD pages and the like, with | ||
2058 | * this code? | ||
2059 | */ | ||
2060 | if (buf[2] == 0) { | 2057 | if (buf[2] == 0) { |
2061 | buf[2] = 0x5; | 2058 | buf[2] = 0x5; |
2062 | buf[3] = 0x32; | 2059 | buf[3] = 0x32; |