Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit bc497df

Browse files
committed
Reapply "ata: libata-scsi: Honor the D_SENSE bit for CK_COND=1 and no error"
This reverts commit 3de895d.
1 parent 9f6f501 commit bc497df

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/ata/libata-scsi.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -941,11 +941,8 @@ static void ata_gen_passthru_sense(struct ata_queued_cmd *qc)
941941
&sense_key, &asc, &ascq);
942942
ata_scsi_set_sense(qc->dev, cmd, sense_key, asc, ascq);
943943
} else {
944-
/*
945-
* ATA PASS-THROUGH INFORMATION AVAILABLE
946-
* Always in descriptor format sense.
947-
*/
948-
scsi_build_sense(cmd, 1, RECOVERED_ERROR, 0, 0x1D);
944+
/* ATA PASS-THROUGH INFORMATION AVAILABLE */
945+
ata_scsi_set_sense(qc->dev, cmd, RECOVERED_ERROR, 0, 0x1D);
949946
}
950947
}
951948

0 commit comments

Comments
 (0)