Skip to content

Commit 9a4cabf

Browse files
xdelgregkh
authored andcommitted
cs5536: add support for IDE controller variant
commit 591b6bb605785c12a21e8b07a08a277065b655a5 upstream. Several legacy devices such as Geode-based Cisco ASA appliances and DB800 development board do possess CS5536 IDE controller with different PCI id than existing one. Using pata_generic is not always feasible as at least DB800 requires MSR quirk from pata_cs5536 to be used with vendor firmware. Signed-off-by: Andrey Korolyov <andrey@xdel.ru> Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3023649 commit 9a4cabf

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/ata/pata_amd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ static const struct pci_device_id amd[] = {
616616
{ PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP73_IDE), 8 },
617617
{ PCI_VDEVICE(NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_MCP77_IDE), 8 },
618618
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CS5536_IDE), 9 },
619+
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CS5536_DEV_IDE), 9 },
619620

620621
{ },
621622
};

drivers/ata/pata_cs5536.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ static int cs5536_init_one(struct pci_dev *dev, const struct pci_device_id *id)
289289

290290
static const struct pci_device_id cs5536[] = {
291291
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CS5536_IDE), },
292+
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CS5536_DEV_IDE), },
292293
{ },
293294
};
294295

include/linux/pci_ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@
573573
#define PCI_DEVICE_ID_AMD_CS5536_EHC 0x2095
574574
#define PCI_DEVICE_ID_AMD_CS5536_UDC 0x2096
575575
#define PCI_DEVICE_ID_AMD_CS5536_UOC 0x2097
576+
#define PCI_DEVICE_ID_AMD_CS5536_DEV_IDE 0x2092
576577
#define PCI_DEVICE_ID_AMD_CS5536_IDE 0x209A
577578
#define PCI_DEVICE_ID_AMD_LX_VIDEO 0x2081
578579
#define PCI_DEVICE_ID_AMD_LX_AES 0x2082

0 commit comments

Comments
 (0)