Patchwork [1/2] pata_cs5535: add pci id for AMD based CS5535 controllers

login
register
mail settings
Submitter Otavio Salvador
Date July 3, 2009, 2:22 p.m.
Message ID <1246630963-5831-1-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/29452/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Otavio Salvador - July 3, 2009, 2:22 p.m.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 drivers/ata/pata_cs5535.c |    3 ++-
 include/linux/pci_ids.h   |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/ata/pata_cs5535.c b/drivers/ata/pata_cs5535.c
index d33aa28..403f561 100644
--- a/drivers/ata/pata_cs5535.c
+++ b/drivers/ata/pata_cs5535.c
@@ -202,7 +202,8 @@  static int cs5535_init_one(struct pci_dev *dev, const struct pci_device_id *id)
 }
 
 static const struct pci_device_id cs5535[] = {
-	{ PCI_VDEVICE(NS, 0x002D), },
+	{ PCI_VDEVICE(NS, PCI_DEVICE_ID_NS_CS5535_IDE), },
+	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CS5535_IDE), },
 
 	{ },
 };
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index 73b46b6..b100b4c 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -537,6 +537,7 @@ 
 #define PCI_DEVICE_ID_AMD_8131_BRIDGE	0x7450
 #define PCI_DEVICE_ID_AMD_8131_APIC	0x7451
 #define PCI_DEVICE_ID_AMD_8132_BRIDGE	0x7458
+#define PCI_DEVICE_ID_AMD_CS5535_IDE    0x208F
 #define PCI_DEVICE_ID_AMD_CS5536_ISA    0x2090
 #define PCI_DEVICE_ID_AMD_CS5536_FLASH  0x2091
 #define PCI_DEVICE_ID_AMD_CS5536_AUDIO  0x2093