Skip to content

Commit

Permalink
[libata passthru] add (DRIVER_SENSE << 24) to all check-conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik committed Oct 6, 2005
1 parent 54dac83 commit 0e5dec4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/scsi/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0e5dec4

Please sign in to comment.