diff options
author | Tejun Heo <htejun@gmail.com> | 2008-03-11 06:52:31 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-03-17 08:26:47 -0400 |
commit | dea55137634226fd74d5187a15dee1244ec252cb (patch) | |
tree | f7acf611f82a0af1194e0375fed462f536f13348 /drivers/ata | |
parent | 916fbfb7ae5f8c8f86399794d89e6d273df8826b (diff) |
ahci: request all PCI BARs
ahci is often implemented with accompanying SFF compatible interface
and legacy IDE driver may attach to the legacy IO ports when the
controller is already claimed by ahci and vice-versa. This patch
makes ahci use pcim_iomap_regions_request_all() so that all IO regions
are claimed on attach.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/ahci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 6978469eb16d..53f5afd9420c 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
@@ -2241,7 +2241,10 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2241 | if (rc) | 2241 | if (rc) |
2242 | return rc; | 2242 | return rc; |
2243 | 2243 | ||
2244 | rc = pcim_iomap_regions(pdev, 1 << AHCI_PCI_BAR, DRV_NAME); | 2244 | /* AHCI controllers often implement SFF compatible interface. |
2245 | * Grab all PCI BARs just in case. | ||
2246 | */ | ||
2247 | rc = pcim_iomap_regions_request_all(pdev, 1 << AHCI_PCI_BAR, DRV_NAME); | ||
2245 | if (rc == -EBUSY) | 2248 | if (rc == -EBUSY) |
2246 | pcim_pin_device(pdev); | 2249 | pcim_pin_device(pdev); |
2247 | if (rc) | 2250 | if (rc) |