]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
misc: alcor_pci: Add AU6625 to list of supported PCI_IDs
authorRhys Perry <rhysperry111@gmail.com>
Sun, 29 Dec 2019 17:18:24 +0000 (17:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 14:16:50 +0000 (15:16 +0100)
I have added the AU6625 PCI_ID to the list of supported IDs:
alcor_pci.c
// Added au6625s ID to the array of supported devices
alcor_pci.h
// Added entry to define the PCI ID

Made it fit in with the already submitted code:
alcor_pci.c
// Added config entry to that matches the one for au6601

>From general usage there seems to be no problems.

Signed-off-by: Rhys Perry <rhysperry111@gmail.com>
Link: https://lore.kernel.org/r/20191229171824.10308-1-rhysperry111@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cardreader/alcor_pci.c
include/linux/alcor_pci.h

index 259fe1dfec039f48f774862f7cfe1c38e47244b2..cd402c89189ea059f42c9e7774ac6dec9ced8631 100644 (file)
@@ -38,12 +38,18 @@ static const struct alcor_dev_cfg au6621_cfg = {
        .dma = 1,
 };
 
+static const struct alcor_dev_cfg au6625_cfg = {
+       .dma = 0,
+};
+
 static const struct pci_device_id pci_ids[] = {
        { PCI_DEVICE(PCI_ID_ALCOR_MICRO, PCI_ID_AU6601),
                .driver_data = (kernel_ulong_t)&alcor_cfg },
        { PCI_DEVICE(PCI_ID_ALCOR_MICRO, PCI_ID_AU6621),
                .driver_data = (kernel_ulong_t)&au6621_cfg },
-       { },
+       { PCI_DEVICE(PCI_ID_ALCOR_MICRO, PCI_ID_AU6625),
+               .driver_data = (kernel_ulong_t)&au6625_cfg },
+       {},
 };
 MODULE_DEVICE_TABLE(pci, pci_ids);
 
index 4416df597526f0465198289baaeb66a60e1d3ae8..8274ed525e9f0fe948d667771975aadbeac1effd 100644 (file)
@@ -17,6 +17,7 @@
 #define PCI_ID_ALCOR_MICRO                     0x1AEA
 #define PCI_ID_AU6601                          0x6601
 #define PCI_ID_AU6621                          0x6621
+#define PCI_ID_AU6625                          0x6625
 
 #define MHZ_TO_HZ(freq)                                ((freq) * 1000 * 1000)