Commit db98b7e0 authored by Cameron Williams's avatar Cameron Williams Committed by sanglipeng
Browse files

parport: Add support for Brainboxes IX/UC/PX parallel cards

stable inclusion
from stable-v5.10.204
commit 9caaf469afd4bded5c0aca216d0e03fa9287c566
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I9J4PL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9caaf469afd4bded5c0aca216d0e03fa9287c566



--------------------------------

commit 1a031f6edc460e9562098bdedc3918da07c30a6e upstream.

Adds support for Intashield IX-500/IX-550, UC-146/UC-157, PX-146/PX-157,
PX-203 and PX-475 (LPT port)

Cc: stable@vger.kernel.org
Signed-off-by: default avatarCameron Williams <cang1@live.co.uk>
Acked-by: default avatarSudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: https://lore.kernel.org/r/AS4PR02MB790389C130410BD864C8DCC9C4A6A@AS4PR02MB7903.eurprd02.prod.outlook.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 0274dbcc
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -2613,6 +2613,8 @@ enum parport_pc_pci_cards {
	netmos_9865,
	quatech_sppxp100,
	wch_ch382l,
	brainboxes_uc146,
	brainboxes_px203,
};


@@ -2676,6 +2678,8 @@ static struct parport_pc_pci {
	/* netmos_9865 */               { 1, { { 0, -1 }, } },
	/* quatech_sppxp100 */		{ 1, { { 0, 1 }, } },
	/* wch_ch382l */		{ 1, { { 2, -1 }, } },
	/* brainboxes_uc146 */	{ 1, { { 3, -1 }, } },
	/* brainboxes_px203 */	{ 1, { { 0, -1 }, } },
};

static const struct pci_device_id parport_pc_pci_tbl[] = {
@@ -2767,6 +2771,23 @@ static const struct pci_device_id parport_pc_pci_tbl[] = {
	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, quatech_sppxp100 },
	/* WCH CH382L PCI-E single parallel port card */
	{ 0x1c00, 0x3050, 0x1c00, 0x3050, 0, 0, wch_ch382l },
	/* Brainboxes IX-500/550 */
	{ PCI_VENDOR_ID_INTASHIELD, 0x402a,
	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, oxsemi_pcie_pport },
	/* Brainboxes UC-146/UC-157 */
	{ PCI_VENDOR_ID_INTASHIELD, 0x0be1,
	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc146 },
	{ PCI_VENDOR_ID_INTASHIELD, 0x0be2,
	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc146 },
	/* Brainboxes PX-146/PX-257 */
	{ PCI_VENDOR_ID_INTASHIELD, 0x401c,
	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, oxsemi_pcie_pport },
	/* Brainboxes PX-203 */
	{ PCI_VENDOR_ID_INTASHIELD, 0x4007,
	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_px203 },
	/* Brainboxes PX-475 */
	{ PCI_VENDOR_ID_INTASHIELD, 0x401f,
	  PCI_ANY_ID, PCI_ANY_ID, 0, 0, oxsemi_pcie_pport },
	{ 0, } /* terminate list */
};
MODULE_DEVICE_TABLE(pci, parport_pc_pci_tbl);