diff options
| author | Steve French <sfrench@us.ibm.com> | 2005-12-31 13:27:22 -0500 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2005-12-31 13:27:22 -0500 |
| commit | eea60caef610c7a6c58c0de9c80ae1e438e01301 (patch) | |
| tree | 25e19289bba003fe085e589430d0d981fd6b73a7 /drivers/scsi/libata-scsi.c | |
| parent | da8543ef125afc7bba4da526b61a1ae07dc25109 (diff) | |
| parent | 82c9df820112c6286a8e8fbe482e94b65b49062c (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Signed-off-by: Steve French <sfrench@us.ibm.com>
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 72ddba98f8fb..2282c04fee46 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c | |||
| @@ -2044,7 +2044,7 @@ static int atapi_qc_complete(struct ata_queued_cmd *qc, unsigned int err_mask) | |||
| 2044 | else { | 2044 | else { |
| 2045 | u8 *scsicmd = cmd->cmnd; | 2045 | u8 *scsicmd = cmd->cmnd; |
| 2046 | 2046 | ||
| 2047 | if (scsicmd[0] == INQUIRY) { | 2047 | if ((scsicmd[0] == INQUIRY) && ((scsicmd[1] & 0x03) == 0)) { |
| 2048 | u8 *buf = NULL; | 2048 | u8 *buf = NULL; |
| 2049 | unsigned int buflen; | 2049 | unsigned int buflen; |
| 2050 | 2050 | ||
| @@ -2058,9 +2058,6 @@ static int atapi_qc_complete(struct ata_queued_cmd *qc, unsigned int err_mask) | |||
| 2058 | * device. 2) Ensure response data format / ATAPI information | 2058 | * device. 2) Ensure response data format / ATAPI information |
| 2059 | * are always correct. | 2059 | * are always correct. |
| 2060 | */ | 2060 | */ |
| 2061 | /* FIXME: do we ever override EVPD pages and the like, with | ||
| 2062 | * this code? | ||
| 2063 | */ | ||
| 2064 | if (buf[2] == 0) { | 2061 | if (buf[2] == 0) { |
| 2065 | buf[2] = 0x5; | 2062 | buf[2] = 0x5; |
| 2066 | buf[3] = 0x32; | 2063 | buf[3] = 0x32; |
