diff options
author | Hannes Reinecke <hare@suse.de> | 2015-03-27 16:46:35 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-03-27 11:59:22 -0400 |
commit | 42b966fbf35da9c87f08d98f9b8978edf9e717cf (patch) | |
tree | a7fd32da1b3a746cab71966d42a08aeeb0d7203d /drivers/ata/libata.h | |
parent | 1308d7f0107b264b480e7048dc345fc6b7408e7e (diff) | |
download | op-kernel-dev-42b966fbf35da9c87f08d98f9b8978edf9e717cf.zip op-kernel-dev-42b966fbf35da9c87f08d98f9b8978edf9e717cf.tar.gz |
libata: Implement NCQ autosense
Some newer devices support NCQ autosense (cf ACS-4), so we should
be using it to retrieve the sense code and speed up recovery.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r-- | drivers/ata/libata.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index f840ca1..8cfdd96 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h @@ -137,6 +137,7 @@ extern int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht); extern void ata_scsi_scan_host(struct ata_port *ap, int sync); extern int ata_scsi_offline_dev(struct ata_device *dev); +extern void ata_scsi_set_sense(struct scsi_cmnd *cmd, u8 sk, u8 asc, u8 ascq); extern void ata_scsi_media_change_notify(struct ata_device *dev); extern void ata_scsi_hotplug(struct work_struct *work); extern void ata_schedule_scsi_eh(struct Scsi_Host *shost); |