diff options
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 f286a6f1c0db..e0439be4b573 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c | |||
@@ -2046,7 +2046,7 @@ static int atapi_qc_complete(struct ata_queued_cmd *qc) | |||
2046 | else { | 2046 | else { |
2047 | u8 *scsicmd = cmd->cmnd; | 2047 | u8 *scsicmd = cmd->cmnd; |
2048 | 2048 | ||
2049 | if (scsicmd[0] == INQUIRY) { | 2049 | if ((scsicmd[0] == INQUIRY) && ((scsicmd[1] & 0x03) == 0)) { |
2050 | u8 *buf = NULL; | 2050 | u8 *buf = NULL; |
2051 | unsigned int buflen; | 2051 | unsigned int buflen; |
2052 | 2052 | ||
@@ -2060,9 +2060,6 @@ static int atapi_qc_complete(struct ata_queued_cmd *qc) | |||
2060 | * device. 2) Ensure response data format / ATAPI information | 2060 | * device. 2) Ensure response data format / ATAPI information |
2061 | * are always correct. | 2061 | * are always correct. |
2062 | */ | 2062 | */ |
2063 | /* FIXME: do we ever override EVPD pages and the like, with | ||
2064 | * this code? | ||
2065 | */ | ||
2066 | if (buf[2] == 0) { | 2063 | if (buf[2] == 0) { |
2067 | buf[2] = 0x5; | 2064 | buf[2] = 0x5; |
2068 | buf[3] = 0x32; | 2065 | buf[3] = 0x32; |