diff options
author | Alexander Gerasiov <gq@redlab-i.ru> | 2018-02-03 18:50:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-14 12:52:00 -0400 |
commit | 823f7923833c6cc2b16e601546d607dcfb368004 (patch) | |
tree | 715fff2e0c5b00e1b8ddab6b3b627eaae4595746 /drivers/parport | |
parent | 0ec4eb71b4956548a9c652f6c26232995916008c (diff) |
parport_pc: Add support for WCH CH382L PCI-E single parallel port card.
WCH CH382L is a PCI-E adapter with 1 parallel port. It is similair to CH382
but serial ports are not soldered on board. Detected as
Serial controller: Device 1c00:3050 (rev 10) (prog-if 05 [16850])
Signed-off-by: Alexander Gerasiov <gq@redlab-i.ru>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parport')
-rw-r--r-- | drivers/parport/parport_pc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c index 489492b608cf..380916bff9e0 100644 --- a/drivers/parport/parport_pc.c +++ b/drivers/parport/parport_pc.c | |||
@@ -2646,6 +2646,7 @@ enum parport_pc_pci_cards { | |||
2646 | netmos_9901, | 2646 | netmos_9901, |
2647 | netmos_9865, | 2647 | netmos_9865, |
2648 | quatech_sppxp100, | 2648 | quatech_sppxp100, |
2649 | wch_ch382l, | ||
2649 | }; | 2650 | }; |
2650 | 2651 | ||
2651 | 2652 | ||
@@ -2708,6 +2709,7 @@ static struct parport_pc_pci { | |||
2708 | /* netmos_9901 */ { 1, { { 0, -1 }, } }, | 2709 | /* netmos_9901 */ { 1, { { 0, -1 }, } }, |
2709 | /* netmos_9865 */ { 1, { { 0, -1 }, } }, | 2710 | /* netmos_9865 */ { 1, { { 0, -1 }, } }, |
2710 | /* quatech_sppxp100 */ { 1, { { 0, 1 }, } }, | 2711 | /* quatech_sppxp100 */ { 1, { { 0, 1 }, } }, |
2712 | /* wch_ch382l */ { 1, { { 2, -1 }, } }, | ||
2711 | }; | 2713 | }; |
2712 | 2714 | ||
2713 | static const struct pci_device_id parport_pc_pci_tbl[] = { | 2715 | static const struct pci_device_id parport_pc_pci_tbl[] = { |
@@ -2797,6 +2799,8 @@ static const struct pci_device_id parport_pc_pci_tbl[] = { | |||
2797 | /* Quatech SPPXP-100 Parallel port PCI ExpressCard */ | 2799 | /* Quatech SPPXP-100 Parallel port PCI ExpressCard */ |
2798 | { PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_SPPXP_100, | 2800 | { PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_SPPXP_100, |
2799 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, quatech_sppxp100 }, | 2801 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, quatech_sppxp100 }, |
2802 | /* WCH CH382L PCI-E single parallel port card */ | ||
2803 | { 0x1c00, 0x3050, 0x1c00, 0x3050, 0, 0, wch_ch382l }, | ||
2800 | { 0, } /* terminate list */ | 2804 | { 0, } /* terminate list */ |
2801 | }; | 2805 | }; |
2802 | MODULE_DEVICE_TABLE(pci, parport_pc_pci_tbl); | 2806 | MODULE_DEVICE_TABLE(pci, parport_pc_pci_tbl); |