aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-09-01 11:50:07 -0400
committerJeff Garzik <jgarzik@redhat.com>2010-10-21 20:21:04 -0400
commit6c8ea89cecd780faa4f4c8ed8b3b6ab88f9fa841 (patch)
treea38ecca3c52cd4ca021137086b39d7dcd8b042cc /drivers/ata/libata.h
parent6b7ae9545ad9875a289f4191c0216b473e313cb9 (diff)
libata: implement LPM support for port multipliers
Port multipliers can do DIPM on fan-out links fine. Implement support for it. Tested w/ SIMG 57xx and marvell PMPs. Both the host and fan-out links enter power save modes nicely. SIMG 37xx and 47xx report link offline on SStatus causing EH to detach the devices. Blacklisted. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata.h')
-rw-r--r--drivers/ata/libata.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h
index 55a6f413a550..7c070a4b1c08 100644
--- a/drivers/ata/libata.h
+++ b/drivers/ata/libata.h
@@ -176,6 +176,8 @@ extern int ata_ering_map(struct ata_ering *ering,
176#ifdef CONFIG_SATA_PMP 176#ifdef CONFIG_SATA_PMP
177extern int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *val); 177extern int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *val);
178extern int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val); 178extern int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val);
179extern int sata_pmp_set_lpm(struct ata_link *link, enum ata_lpm_policy policy,
180 unsigned hints);
179extern int sata_pmp_attach(struct ata_device *dev); 181extern int sata_pmp_attach(struct ata_device *dev);
180#else /* CONFIG_SATA_PMP */ 182#else /* CONFIG_SATA_PMP */
181static inline int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *val) 183static inline int sata_pmp_scr_read(struct ata_link *link, int reg, u32 *val)
@@ -188,6 +190,12 @@ static inline int sata_pmp_scr_write(struct ata_link *link, int reg, u32 val)
188 return -EINVAL; 190 return -EINVAL;
189} 191}
190 192
193static inline int sata_pmp_set_lpm(struct ata_link *link,
194 enum ata_lpm_policy policy, unsigned hints)
195{
196 return -EINVAL;
197}
198
191static inline int sata_pmp_attach(struct ata_device *dev) 199static inline int sata_pmp_attach(struct ata_device *dev)
192{ 200{
193 return -EINVAL; 201 return -EINVAL;