ata_piix: convert to prepare - activate initialization
authorTejun Heo <htejun@gmail.com>
Fri, 18 Jan 2008 09:36:29 +0000 (18:36 +0900)
committerJeff Garzik <jeff@garzik.org>
Wed, 23 Jan 2008 10:24:16 +0000 (05:24 -0500)
commit8b09f0da0f873698a7e8b329dfb7b10fd42d5cdf
treeec3bbe5ede4450021fcc18dcd40e6451363fdce2
parent4e6b79fa61091a0ed9b0af0f573cc257772cd88d
ata_piix: convert to prepare - activate initialization

ata_piix requires more configuration during initialization than most
other SFF compliant controllers and one-go initialzation with
ata_pci_one() is too rigid.

This patch converts ata_piix to use two step prepare - activate
initialization used by other more advanced controllers.  This
conversion brings the happy side effect of enabling PCI device before
accessing PCI configuration registers.  Other than that, there
shouldn't be any behavior change.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/ata_piix.c