Received: by 10.213.65.68 with SMTP id h4csp647934imn; Fri, 6 Apr 2018 06:44:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+r66mUBAeBwj+1gKBqu33i8SW79zartfV/u86c6RDnUYizBvXdwKJ15d+USpURoJiKhN7a X-Received: by 2002:a17:902:7482:: with SMTP id h2-v6mr27736919pll.264.1523022252628; Fri, 06 Apr 2018 06:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523022252; cv=none; d=google.com; s=arc-20160816; b=n0dlV/NG2p3JUwynTJwTMu9YyrjAGO/1QROJDTeD45OGiq5HM5dPI5vFY/KEXVsh6w 5kryc4b4sqiXpbn+F4whyWv0q0kyeV6wR3HXhRh4G0kw1Eq1g8SErwsvJ/Eb7PYhgHnk NzqHUYh8+LigGWuk0f672GTcvGLSavQT9i9muvVNOui9IILzfRBWOj5WBegUxpEfsm6K //6LbMS6HxdwRs39axC4BhybLd7puICWbXJSmfO2tRlHHY0SlKltoklRGVU31AfGoyCx CtEE9XbljWVahp88sQ5ErI/Lj8SRjCcIrYvMBfjd7FsVxHUbCLrRMPAQu3lSqoClrtwY Qp0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=0MCQfrydVdbgcIZEJp775jW9rAclsrYInmH5SLCRIqY=; b=pbHYT4ZPCUNyE7npX81H24MLuU1Jvi7hs6R5vc6orOlQ2FhBXEDLW5BOfLofgC57VO LXEW1724IhWIXCB/WI4yxUTrGmGQxMScsOUccAOzxzllG2CrHOf2xpx9fwpw+xHFCSU+ vptfnbbP1lxCY3S/lPkuEoWNyloDiZgNQBC7YRcvgKlwSznyUHli/D/ryQJuTvLFmE7R lnUOYOvT0+6PFBF58Q5c8cjw5Fx/JZqmsj1kESjcvuepHutYpN2HZXx3Y3sW/TcTyEnL We3/b+4zyqFsB4aWW5gEbp10MUrZ6IHMrcKe3Kjbq5cELN70fvKCxJLxcSP7uV5Dd9Qu vLsw== 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 f2-v6si8360255plo.434.2018.04.06.06.43.59; Fri, 06 Apr 2018 06:44:12 -0700 (PDT) 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 S1756633AbeDFNmp (ORCPT + 99 others); Fri, 6 Apr 2018 09:42:45 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37080 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752187AbeDFNml (ORCPT ); Fri, 6 Apr 2018 09:42:41 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B7B18DB5; Fri, 6 Apr 2018 13:42:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Gerasiov Subject: [PATCH 4.15 48/72] parport_pc: Add support for WCH CH382L PCI-E single parallel port card. Date: Fri, 6 Apr 2018 15:24:23 +0200 Message-Id: <20180406084352.896375970@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084349.367583460@linuxfoundation.org> References: <20180406084349.367583460@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alexander Gerasiov commit 823f7923833c6cc2b16e601546d607dcfb368004 upstream. 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 Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/parport/parport_pc.c | 4 ++++ 1 file changed, 4 insertions(+) --- 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 parpor /* 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);