mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alexander Gerasiov <gq@redlab-i.ru>
To: <linux-kernel@vger.kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Sudip Mukherjee <sudipm.mukherjee@gmail.com>,
	Andy Shevchenko <andy.shevchenko@gmail.com>,
	Alan Cox <gnomes@lxorguk.ukuu.org.uk>,
	Alexander Gerasiov <gq@redlab-i.ru>
Subject: [PATCH] parport_pc: Add support for WCH CH382L PCI-E single parallel port card.
Date: Wed,  5 Jul 2017 23:02:22 +0300	[thread overview]
Message-ID: <1499284942-1899-1-git-send-email-gq@redlab-i.ru> (raw)
In-Reply-To: <20170618210659.GA3785@sudip-laptop>

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>
---
 drivers/parport/parport_pc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c
index 78530d1714dc..f00a87cd9ea9 100644
--- a/drivers/parport/parport_pc.c
+++ b/drivers/parport/parport_pc.c
@@ -2646,6 +2646,7 @@ enum parport_pc_pci_cards {
 	netmos_9901,
 	netmos_9865,
 	quatech_sppxp100,
+	wch_ch382_1p,
 };
 
 
@@ -2708,6 +2709,7 @@ static struct parport_pc_pci {
 	/* netmos_9901 */               { 1, { { 0, -1 }, } },
 	/* netmos_9865 */               { 1, { { 0, -1 }, } },
 	/* quatech_sppxp100 */		{ 1, { { 0, 1 }, } },
+	/* wch_ch382_1p*/		{ 1, { { 2, -1}, } },
 };
 
 static const struct pci_device_id parport_pc_pci_tbl[] = {
@@ -2797,6 +2799,8 @@ static const struct pci_device_id parport_pc_pci_tbl[] = {
 	/* 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 },
+	/* WCH CH382L PCI-E single parallel port card */
+	{ 0x1c00, 0x3050, 0x1c00, 0x3050, 0, 0, wch_ch382_1p},
 	{ 0, } /* terminate list */
 };
 MODULE_DEVICE_TABLE(pci, parport_pc_pci_tbl);
-- 
2.11.0

  parent reply	other threads:[~2017-07-05 20:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-17 13:02 [PATCH] parport_serial: " Sudip Mukherjee
2017-06-17 13:45 ` Andy Shevchenko
2017-06-18 18:37   ` Alexander Gerasiov
2017-06-18 21:06     ` Sudip Mukherjee
2017-06-19 18:37       ` Alan Cox
2017-07-05 11:07         ` Alexander Gerasiov
2017-07-05 20:02       ` Alexander Gerasiov [this message]
2017-07-05 21:28         ` [PATCH] parport_pc: " Andy Shevchenko
2018-02-03 23:37           ` Alexander Gerasiov
2018-02-03 23:50             ` Alexander Gerasiov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1499284942-1899-1-git-send-email-gq@redlab-i.ru \
    --to=gq@redlab-i.ru \
    --cc=andy.shevchenko@gmail.com \
    --cc=gnomes@lxorguk.ukuu.org.uk \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sudipm.mukherjee@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®