summaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@google.com>2013-01-18 10:56:43 -0800
committerJeff Garzik <jgarzik@redhat.com>2013-02-20 17:13:17 -0500
commit84a9a8cd9d0aa93c17e5815ab8a9cc4c0a765c63 (patch)
treeac32afc022d5885e278b61a0f6eaf7730ccc2a92 /drivers/scsi
parent9b2b1ca5b738727707d1c9d5dbc70b1a0a813467 (diff)
downloadlinux-3.10-84a9a8cd9d0aa93c17e5815ab8a9cc4c0a765c63.tar.gz
linux-3.10-84a9a8cd9d0aa93c17e5815ab8a9cc4c0a765c63.tar.bz2
linux-3.10-84a9a8cd9d0aa93c17e5815ab8a9cc4c0a765c63.zip
[libata] Set proper SK when CK_COND is set.
When the user application sends a ATA_12 or ATA_16 PASSTHROUGH scsi command, put the task file register in the sense data with the proper Sense Key. Instead of NO SENSE, set RECOVERED, as specified in [SAT2]12.2.5 Table 92. Tested: Using udev ata_id to generate a passthrough command, IDENTIFY: before: sd 0:0:0:0: [sda] CDB: ATA command pass through(12)/Blank: \ a1 08 2e 00 01 00 00 00 00 ec 00 00 sd 0:0:0:0: [sda] Sense Key : No Sense [current] [descriptor] Descriptor sense data with sense descriptors (in hex): 72 00 00 00 00 00 00 0e 09 0c 00 00 00 00 00 3f 00 18 00 a6 e0 50 after sd 0:0:0:0: [sda] CDB: ATA command pass through(12)/Blank: \ a1 08 2e 00 01 00 00 00 00 ec 00 00 sd 0:0:0:0: [sda] Sense Key : Recovered Error [current] [descriptor] Descriptor sense data with sense descriptors (in hex): 72 01 00 1d 00 00 00 0e 09 0c 00 00 00 01 00 00 00 00 00 00 00 50 Signed-off-by: Gwendal Grignou <gwendal@google.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/scsi')
0 files changed, 0 insertions, 0 deletions