diff options
author | Hannes Reinecke <hare@suse.de> | 2016-04-04 09:43:54 (GMT) |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-04-04 16:07:40 (GMT) |
commit | 5b01e4b9efa0b78672cbbea830c9fbcc7f239e29 (patch) | |
tree | 86eab8729d8327160e5c632befcea455a6e3bd32 /drivers/ata/libata.h | |
parent | d991c872ac7ffaacc4df93efbfbcb4189cee6440 (diff) | |
download | linux-5b01e4b9efa0b78672cbbea830c9fbcc7f239e29.tar.xz |
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); |