Received: by 10.223.176.5 with SMTP id f5csp1011287wra; Sat, 3 Feb 2018 15:58:27 -0800 (PST) X-Google-Smtp-Source: AH8x224OwC1onJ3cMUATB/OvFEqB+G1lFOTpewJ0YTegbksiISqhybU4t8eaONqeBUvzMJZ9MwSG X-Received: by 10.101.100.69 with SMTP id s5mr1590454pgv.413.1517702307830; Sat, 03 Feb 2018 15:58:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517702307; cv=none; d=google.com; s=arc-20160816; b=Gvp9tvCDILhf0q2iJyRy4jvq+gSfB+8hIf84fvsrjrAZJp5FdbuRn1uWOsTCtfzdeK daRmYCHMy9aLjS5DPjbdK8NLbfrf0DwwLlVJBU2go+vxrZu8/OiyioMfI88rZ1WW+cCl MEUMMU+mlMFfwz+NSncqaUe1Oc/6QInfsuG0mZfHy588tU8cAe85mnOwZ2p7BMg8lleh cwmHujEgYTcryr4nD6+Zm+IOSLWN2YHRw6BriCHDelZRg7t6cQBkMFPTGIyFnxLn81Xz WJA/NhICoBt8Do/eygz6qoLyRFEINpD2jnzDmQ9/bZY72bv6lRY4qGp4U2/KeXl/PGv8 uFaw== 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=sOFL4/o+lkBna2SGfAHF6CsnVh4Rm08nXKGvKYMQo4w=; b=Ab9iRzVvKFRYhdwx0Gfnrg5yq4q5iBqGpq/F6l2Uz7Jtwt+oNnd3cU8GMNovAbmvb/ dF5H5kvQ91+nkisrm53dlDTaWKAR9DhlY79UND49RSoD3sTAkSNOl9onDICK83DmUyYZ C6H2iBGcYbc0JomGpXLlTe37CQrhRoHCmAnUdPjeH/SFxO+Ef9wtxNVRbXnz653BmMfR /8YkRWzx7xRQpN5atIKLqjReVmtWQ40cfPccusxkGuhG8yc1qO5XTIhriWA/fFdB0vls yGqfoAjEjbYfji4h/XQyc5NKOh4jn7z97NqxyZAK0wpY+jqgKEpfNJTlJjZZUvDQLFk3 GhQA== 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 h71si1570038pgc.707.2018.02.03.15.58.13; Sat, 03 Feb 2018 15:58:27 -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 S1752790AbeBCXqa (ORCPT + 99 others); Sat, 3 Feb 2018 18:46:30 -0500 Received: from lvk-gate.cs.msu.ru ([188.44.42.233]:33275 "EHLO mail.lvk.cs.msu.su" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752400AbeBCXqW (ORCPT ); Sat, 3 Feb 2018 18:46:22 -0500 X-Greylist: delayed 461 seconds by postgrey-1.27 at vger.kernel.org; Sat, 03 Feb 2018 18:46:22 EST Received: from mail.lvk.cs.msu.su (localhost.localdomain [127.0.0.1]) by mail.lvk.cs.msu.su (Postfix) with ESMTP id 6B48E702768; Sun, 4 Feb 2018 02:38:37 +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 50D6F702766; Sun, 4 Feb 2018 02:38:37 +0300 (MSK) Received: (nullmailer pid 31921 invoked by uid 1256); Sat, 03 Feb 2018 23:38:37 -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:37:40 +0300 Message-Id: <1517701060-31846-1-git-send-email-gq@redlab-i.ru> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: 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..aa6bb50384ee 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