Skip to content

Commit 7f9c9f8

Browse files
Hugh DaschbachJeff Garzik
authored andcommitted
[libata] ahci: Add support for Enmotus Bobcat device.
Silicon does not support standard AHCI BAR assignment. Add vendor/device exception to force BAR 2. Signed-off-by: Hugh Daschbach <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
1 parent 1eaca39 commit 7f9c9f8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/ata/ahci.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353

5454
enum {
5555
AHCI_PCI_BAR_STA2X11 = 0,
56+
AHCI_PCI_BAR_ENMOTUS = 2,
5657
AHCI_PCI_BAR_STANDARD = 5,
5758
};
5859

@@ -410,6 +411,9 @@ static const struct pci_device_id ahci_pci_tbl[] = {
410411
{ PCI_VDEVICE(ASMEDIA, 0x0611), board_ahci }, /* ASM1061 */
411412
{ PCI_VDEVICE(ASMEDIA, 0x0612), board_ahci }, /* ASM1062 */
412413

414+
/* Enmotus */
415+
{ PCI_DEVICE(0x1c44, 0x8000), board_ahci },
416+
413417
/* Generic, PCI class code for AHCI */
414418
{ PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
415419
PCI_CLASS_STORAGE_SATA_AHCI, 0xffffff, board_ahci },
@@ -1098,9 +1102,11 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
10981102
dev_info(&pdev->dev,
10991103
"PDC42819 can only drive SATA devices with this driver\n");
11001104

1101-
/* The Connext uses non-standard BAR */
1105+
/* Both Connext and Enmotus devices use non-standard BARs */
11021106
if (pdev->vendor == PCI_VENDOR_ID_STMICRO && pdev->device == 0xCC06)
11031107
ahci_pci_bar = AHCI_PCI_BAR_STA2X11;
1108+
else if (pdev->vendor == 0x1c44 && pdev->device == 0x8000)
1109+
ahci_pci_bar = AHCI_PCI_BAR_ENMOTUS;
11041110

11051111
/* acquire resources */
11061112
rc = pcim_enable_device(pdev);

0 commit comments

Comments
 (0)