diff options
author | Tejun Heo <htejun@gmail.com> | 2008-04-07 09:47:18 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-04-17 15:44:22 -0400 |
commit | 203c75b8245c5386044721d9c5eda5c6b71b3d14 (patch) | |
tree | 5a8c446c483a77dc86aca145b0b38c4a2b410dfa /include/linux/libata.h | |
parent | 0aa1113d544226bc2c4a20d6ac1d71170512a361 (diff) |
libata: separate out ata_std_postreset() from ata_sff_postreset()
Separate out generic ATA portion from ata_sff_postreset() into
ata_std_postreset() and implement ata_sff_postreset() using the std
version.
ata_base_port_ops now has ata_std_postreset() for its postreset and
ata_sff_port_ops overrides it to ata_sff_postreset().
This change affects pdc_adma, ahci, sata_fsl and sata_sil24. pdc_adma
now specifies postreset to ata_sff_postreset() explicitly. sata_fsl
and sata_sil24 now use ata_std_postreset() which makes no difference
to them. ahci now calls ata_std_postreset() from its own postreset
method, which causes no behavior difference.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'include/linux/libata.h')
-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 595ede55fe4c..6e14c27319d5 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -831,6 +831,7 @@ extern int sata_link_resume(struct ata_link *link, const unsigned long *params, | |||
831 | unsigned long deadline); | 831 | unsigned long deadline); |
832 | extern int sata_link_hardreset(struct ata_link *link, | 832 | extern int sata_link_hardreset(struct ata_link *link, |
833 | const unsigned long *timing, unsigned long deadline); | 833 | const unsigned long *timing, unsigned long deadline); |
834 | extern void ata_std_postreset(struct ata_link *link, unsigned int *classes); | ||
834 | extern void ata_port_disable(struct ata_port *); | 835 | extern void ata_port_disable(struct ata_port *); |
835 | 836 | ||
836 | extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports); | 837 | extern struct ata_host *ata_host_alloc(struct device *dev, int max_ports); |