ahci: add HFLAG_YES_FBS and apply it to 88SE9128
authorAnssi Hannula <anssi.hannula@iki.fi>
Wed, 19 Jan 2011 01:03:26 +0000 (20:03 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 28 Jan 2011 08:07:04 +0000 (03:07 -0500)
Commit 5f173107ecad83a50 added HFLAG_YES_FBS workaround for 88SE9128
(1b4b:9123).

However, that change inadvertently caused the legacy IDE interface of
the controller (with the same pci id) to become associated with the AHCI
driver as well, causing the driver to try to bring the interface up in
vain.

Fix that by matching against class as well.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ahci.c

index 3a43b116783e54828bf32ca090c813422a2cdddc..b8d96ce37fc99798af81a27a2604f890cf6c4518 100644 (file)
@@ -380,6 +380,8 @@ static const struct pci_device_id ahci_pci_tbl[] = {
        { PCI_VDEVICE(MARVELL, 0x6145), board_ahci_mv },        /* 6145 */
        { PCI_VDEVICE(MARVELL, 0x6121), board_ahci_mv },        /* 6121 */
        { PCI_DEVICE(0x1b4b, 0x9123),
+         .class = PCI_CLASS_STORAGE_SATA_AHCI,
+         .class_mask = 0xffffff,
          .driver_data = board_ahci_yes_fbs },                  /* 88se9128 */
 
        /* Promise */