]> git.baikalelectronics.ru Git - kernel.git/commit
libata: separate out ata_std_postreset() from ata_sff_postreset()
authorTejun Heo <htejun@gmail.com>
Mon, 7 Apr 2008 13:47:18 +0000 (22:47 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 19:44:22 +0000 (15:44 -0400)
commitce77b6130cadbc615a03a4c19a98aa02aed7f602
tree5a8c446c483a77dc86aca145b0b38c4a2b410dfa
parent9d7d1b48fc6dfd1b8426655ac54097fb143e6c85
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>
drivers/ata/ahci.c
drivers/ata/libata-core.c
drivers/ata/libata-sff.c
include/linux/libata.h