]> err.no Git - linux-2.6/commitdiff
[libata passthru] add (DRIVER_SENSE << 24) to all check-conditions
authorJeff Garzik <jgarzik@pobox.com>
Thu, 6 Oct 2005 13:40:20 +0000 (09:40 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 6 Oct 2005 13:40:20 +0000 (09:40 -0400)
drivers/scsi/libata-scsi.c

index 75cb685e320b76133b1d011fe632a96d4dffad22..1b00bc618e157ab02c5902399bb6e39b8fef4cb6 100644 (file)
@@ -500,7 +500,7 @@ void ata_gen_ata_desc_sense(struct ata_queued_cmd *qc)
 
        memset(sb, 0, SCSI_SENSE_BUFFERSIZE);
 
-       cmd->result = SAM_STAT_CHECK_CONDITION;
+       cmd->result = (DRIVER_SENSE << 24) | SAM_STAT_CHECK_CONDITION;
 
        /*
         * Read the controller registers.
@@ -575,7 +575,7 @@ void ata_gen_fixed_sense(struct ata_queued_cmd *qc)
 
        memset(sb, 0, SCSI_SENSE_BUFFERSIZE);
 
-       cmd->result = SAM_STAT_CHECK_CONDITION;
+       cmd->result = (DRIVER_SENSE << 24) | SAM_STAT_CHECK_CONDITION;
 
        /*
         * Read the controller registers.
@@ -1638,7 +1638,7 @@ unsigned int ata_scsiop_report_luns(struct ata_scsi_args *args, u8 *rbuf,
 void ata_scsi_badcmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *), u8 asc, u8 ascq)
 {
        DPRINTK("ENTER\n");
-       cmd->result = SAM_STAT_CHECK_CONDITION;
+       cmd->result = (DRIVER_SENSE << 24) | SAM_STAT_CHECK_CONDITION;
 
        cmd->sense_buffer[0] = 0x70;
        cmd->sense_buffer[2] = ILLEGAL_REQUEST;