ahci: Add support for Dell S140 and later controllers
authorCharles Rose <charles.rose@dell.com>
Tue, 15 Jun 2021 19:08:01 +0000 (14:08 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Jun 2021 21:43:58 +0000 (15:43 -0600)
This patch enables support for Dell S140 and later controllers
that use Intel's PCHs configured as PCI_CLASS_STORAGE_RAID.

Reviewed-by: Mika Westerberg <mika.westerberg@intel.com>
Signed-off-by: Charles Rose <charles.rose@dell.com>
Link: https://lore.kernel.org/r/20210615190801.1744466-1-charles.rose@dell.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/ahci.c
include/linux/pci_ids.h

index 33192a8f687d664e3b62ff5e4cd2118e1bc324f5..186cbf90c8ead352bf862e2f418883adc7158095 100644 (file)
@@ -446,6 +446,10 @@ static const struct pci_device_id ahci_pci_tbl[] = {
        { PCI_VENDOR_ID_AMD, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
          PCI_CLASS_STORAGE_RAID << 8, 0xffffff, board_ahci },
 
+       /* Dell S140/S150 */
+       { PCI_VENDOR_ID_INTEL, PCI_ANY_ID, PCI_SUBVENDOR_ID_DELL, PCI_ANY_ID,
+         PCI_CLASS_STORAGE_RAID << 8, 0xffffff, board_ahci },
+
        /* VIA */
        { PCI_VDEVICE(VIA, 0x3349), board_ahci_vt8251 }, /* VIA VT8251 */
        { PCI_VDEVICE(VIA, 0x6287), board_ahci_vt8251 }, /* VIA VT8251 */
index 4c3fa5293d763ee35387bdbc6c215b49d7ba1f41..803ec446a7292cf26a0425e4fa27a987e807d6a5 100644 (file)
 #define PCI_DEVICE_ID_DELL_RAC4                0x0012
 #define PCI_DEVICE_ID_DELL_PERC5       0x0015
 
+#define PCI_SUBVENDOR_ID_DELL          0x1028
+
 #define PCI_VENDOR_ID_MATROX           0x102B
 #define PCI_DEVICE_ID_MATROX_MGA_2     0x0518
 #define PCI_DEVICE_ID_MATROX_MIL       0x0519