]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
parport_pc: add support for ASIX AX99100
authorJiaqing Zhao <jiaqing.zhao@linux.intel.com>
Mon, 24 Jul 2023 08:39:33 +0000 (08:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:47:23 +0000 (12:47 +0100)
commit 16aae4c64600a6319a6f10dbff833fa198bf9599 upstream.

The PCI function 2 on ASIX AX99100 PCIe to Multi I/O Controller can be
configured as a single-port parallel port controller. The subvendor id
is 0x2000 when configured as parallel port. It supports IEEE-1284 EPP /
ECP with its ECR on BAR1.

Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: https://lore.kernel.org/r/20230724083933.3173513-5-jiaqing.zhao@linux.intel.com
Signed-off-by: Tomita Moeko <tomitamoeko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parport/parport_pc.c

index de5a823f30310c7194b574f9a458e51c2ed2c81d..67aff871374d378885c78a7758fbd72812f3b0c0 100644 (file)
@@ -2611,6 +2611,7 @@ enum parport_pc_pci_cards {
        netmos_9815,
        netmos_9901,
        netmos_9865,
+       asix_ax99100,
        quatech_sppxp100,
        wch_ch382l,
        brainboxes_uc146,
@@ -2676,6 +2677,7 @@ static struct parport_pc_pci {
        /* netmos_9815 */               { 2, { { 0, 1 }, { 2, 3 }, } },
        /* netmos_9901 */               { 1, { { 0, -1 }, } },
        /* netmos_9865 */               { 1, { { 0, -1 }, } },
+       /* asix_ax99100 */              { 1, { { 0, 1 }, } },
        /* quatech_sppxp100 */          { 1, { { 0, 1 }, } },
        /* wch_ch382l */                { 1, { { 2, -1 }, } },
        /* brainboxes_uc146 */  { 1, { { 3, -1 }, } },
@@ -2766,6 +2768,9 @@ static const struct pci_device_id parport_pc_pci_tbl[] = {
          0xA000, 0x1000, 0, 0, netmos_9865 },
        { PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9865,
          0xA000, 0x2000, 0, 0, netmos_9865 },
+       /* ASIX AX99100 PCIe to Multi I/O Controller */
+       { PCI_VENDOR_ID_ASIX, PCI_DEVICE_ID_ASIX_AX99100,
+         0xA000, 0x2000, 0, 0, asix_ax99100 },
        /* Quatech SPPXP-100 Parallel port PCI ExpressCard */
        { PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_SPPXP_100,
          PCI_ANY_ID, PCI_ANY_ID, 0, 0, quatech_sppxp100 },