Received: by 10.223.176.5 with SMTP id f5csp1011592wra; Sat, 3 Feb 2018 15:59:06 -0800 (PST) X-Google-Smtp-Source: AH8x227AJqEPXiyG4wx1utK68++i+Wqc8Naggz9PgNE9IFkLO8CLWA6xMDCFHH+j1xnwP1+rTGDK X-Received: by 10.99.170.73 with SMTP id x9mr34914133pgo.393.1517702346054; Sat, 03 Feb 2018 15:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517702346; cv=none; d=google.com; s=arc-20160816; b=H/UcxsMrqjeSuLoaywvJ5whFu4ob/9tPuMBF6Xg8jgdZ1Xjb5lgVXRxUIwkBPuRHva OA1MWa62mKTL4XrmZo+hTPPZnUvdC9fJO2S6iJpU8xR+Vf2pJFhhVjFZE7OWT7OL8Jy5 b9nmcbdnvPEHcLQqRemDoARvUhCPQgPRTsWYvpeaNgdyhmt6//FjL8TclGbrcFYC1hLq nor+oTJfWK/KyEus3xh6jFKZ4BIjoKaeRxWDu5FDvfTyY/1eE6QJ9LgxwDBpy/o1bDdd 0grL/wOBdHcQpJioK73nC7FwhNARoN+GjgKxOm4IAXpItqAGEsnHN9Rjs/nNgkrGa7pR JP6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=qMi/AfGg/egmXZEm7HDNmbxBrJNTtJTIZHn8/9Z1e3Y=; b=ardzRWvnI0FrpWLgW9HblzUuAwMbtuX3LUlZ0N398yNkFxKvW/yG8W7oKPaPJgTLtZ u8APivJRaBD2YPgD8X6cBgwLONb7/mYkOXo7J3sZiOnRegx5MfFqZ6rGCAVOnEYCGO+9 9hTrVU7haBiY8TKrAPth/GXlGeHKjLTvVzrKAOZ+l7YHjYaGWwKe0DvEpIiDk3Jsu8YE SUSY6qVxK/04oijfmRiVGepbupfGMN0j6F84lV2/1KOjCh490NAxtXxw8Be2yCQ6wKI/ wmpMEUVYJUeBbQrcrz/xGc/u6/ormXvAo4A4xOxTJc9w6c6ssuulJlT2VZxnkpkmaJHb UZzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si363262pgr.73.2018.02.03.15.58.51; Sat, 03 Feb 2018 15:59:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752873AbeBCXuq (ORCPT + 99 others); Sat, 3 Feb 2018 18:50:46 -0500 Received: from lvk-gate.cs.msu.ru ([188.44.42.233]:33529 "EHLO mail.lvk.cs.msu.su" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752400AbeBCXuj (ORCPT ); Sat, 3 Feb 2018 18:50:39 -0500 Received: from mail.lvk.cs.msu.su (localhost.localdomain [127.0.0.1]) by mail.lvk.cs.msu.su (Postfix) with ESMTP id 5FD91702768; Sun, 4 Feb 2018 02:50:36 +0300 (MSK) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on spamd.lvknet X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=7.0 tests=ALL_TRUSTED=-1,BAYES_00=-1.9 autolearn=ham version=3.3.2 Received: from lvk.cs.msu.su (desktopvm.lvknet [192.168.132.1]) by mail.lvk.cs.msu.su (Postfix) with SMTP id 41867702766; Sun, 4 Feb 2018 02:50:36 +0300 (MSK) Received: (nullmailer pid 32505 invoked by uid 1256); Sat, 03 Feb 2018 23:50:36 -0000 From: Alexander Gerasiov To: Cc: Greg Kroah-Hartman , Sudip Mukherjee , Andy Shevchenko , Alan Cox , Alexander Gerasiov Subject: [PATCH] parport_pc: Add support for WCH CH382L PCI-E single parallel port card. Date: Sun, 4 Feb 2018 02:50:22 +0300 Message-Id: <1517701822-32462-1-git-send-email-gq@redlab-i.ru> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1517701060-31846-1-git-send-email-gq@redlab-i.ru> References: <1517701060-31846-1-git-send-email-gq@redlab-i.ru> X-AV-Checked: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 489492b608cf..380916bff9e0 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_ch382l, }; @@ -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_ch382l */ { 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_ch382l }, { 0, } /* terminate list */ }; MODULE_DEVICE_TABLE(pci, parport_pc_pci_tbl); -- 2.11.0