diff options
author | Hannes Reinecke <hare@suse.de> | 2016-04-04 11:44:03 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-04-04 18:07:41 +0200 |
commit | 06dbde5f3a44248fc02e24d662ac4849202abb48 (patch) | |
tree | 5440a9c3181be96f16b1b6b5fb3fe09928ba9517 /drivers/ata/libata.h | |
parent | libata-scsi: generate correct ATA pass-through sense (diff) | |
download | linux-06dbde5f3a44248fc02e24d662ac4849202abb48.tar.xz linux-06dbde5f3a44248fc02e24d662ac4849202abb48.zip |
libata: Implement control mode page to select sense format
Implement MODE SELECT for the control mode page to allow the OS
to switch to descriptor sense.
tj: Dropped s/sb/cmd->sense_buffer/ in ata_gen_ata_sense(). Added
@dev description to ata_msense_ctl_mode().
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index dbc67604b3c5..3b301a48007c 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h @@ -138,7 +138,8 @@ 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_set_sense(struct ata_device *dev, + struct scsi_cmnd *cmd, u8 sk, u8 asc, u8 ascq); extern void ata_scsi_set_sense_information(struct ata_device *dev, struct scsi_cmnd *cmd, const struct ata_taskfile *tf); |