diff options
author | Gabriele Mazzotta <gabriele.mzt@gmail.com> | 2015-04-25 19:52:36 +0200 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2015-06-03 11:33:12 +0200 |
commit | 4037866e8eb01c45631a093524c37e6b913bab97 (patch) | |
tree | 4ec0426f64b09f50e3451c68e4ba83e3c942b6c9 /include/linux | |
parent | 8755ceb161645e0c3df97203994c20ee15bd8607 (diff) | |
download | lwn-4037866e8eb01c45631a093524c37e6b913bab97.tar.gz lwn-4037866e8eb01c45631a093524c37e6b913bab97.zip |
libata: Add helper to determine when PHY events should be ignored
commit 8393b811f38acdf7fd8da2028708edad3e68ce1f upstream.
This is a preparation commit that will allow to add other criteria
according to which PHY events should be dropped.
Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/libata.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index e13b3aef0b0c..cf205c03d758 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -1201,6 +1201,7 @@ extern struct ata_device *ata_dev_pair(struct ata_device *adev); extern int ata_do_set_mode(struct ata_link *link, struct ata_device **r_failed_dev); extern void ata_scsi_port_error_handler(struct Scsi_Host *host, struct ata_port *ap); extern void ata_scsi_cmd_error_handler(struct Scsi_Host *host, struct ata_port *ap, struct list_head *eh_q); +extern bool sata_lpm_ignore_phy_events(struct ata_link *link); extern int ata_cable_40wire(struct ata_port *ap); extern int ata_cable_80wire(struct ata_port *ap); |