Received: by 10.213.65.68 with SMTP id h4csp651456imn; Fri, 6 Apr 2018 06:47:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+QnLJq78G1iOxiVJG22cCJY+euIw1g2pFBku/sjYAE9sqcrO40JjE745UlD5fJ7K4SCiy8 X-Received: by 2002:a17:902:7446:: with SMTP id e6-v6mr28022719plt.159.1523022467982; Fri, 06 Apr 2018 06:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523022467; cv=none; d=google.com; s=arc-20160816; b=T1+p72Ylw5ABV7cpq2WVqZMCsbbhaFoEuAvzfwbkV1JDGeqAWVUJp/qeV1SfPukrKH 5BTY1B0kK6gEi0HFzBp/DWuJxezBk6w7sgmuCL7u1drvJCPgxBdRu5whyDfXkSIHCpPg WUB6pcTSEVX2v4ffYD0b1KyqO42k7b86dRAoEitmHQ9DW00f+gYZdzK/U3B2zK3AToZW Huy7gU8EtQlxRzi8dFugwQL9p7B4dbkXl0goC3Q2fRWtmWJwR4qcqaz9tISrkVncy9Kw DVCnP+XcZga5LrNrZvP6SmYUp0U2YM6I/YLHVuSLak7oPNVFT9IKykrjwW61aqAT2fAZ miyQ== 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=6US4wHB3Xf9qprSdjnfdwL9tSF3M7LB0FBbIq74cUcY=; b=V7RPRgp2ehfmmkkGMmMoW97yHElqhN2GS6FvR3jTmGa0/cPzsf6w8omA9M2Hy97viS Nyuo/vDlI/Ax3/+9cmEE2i/H+tgluvxxTVqdtiZJilivS5DuJ6DRSZLBnVzWo1syyc3F U3ed3OqK9A2wYBaN1EpeTqxMzmgqF7w05r+xrEjphlFIo/peJbzkMuIhib9U7ZD3cy1v DPwMbJgIbH6qgi2eLJvtoeBrLgeRJ7rOk0YAC7cOsCn3tsWX3ozAA0wJWLnrm52oaJkB TfCFr6gkseN5UjAVUh7tkQUBUZ4oWp/dMym/iYcUI3uTvE4qCO/bAfTsfgJyhb3TQuLd M3tQ== 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 c76si7253400pga.156.2018.04.06.06.47.34; Fri, 06 Apr 2018 06:47:47 -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 S1757012AbeDFNqP (ORCPT + 99 others); Fri, 6 Apr 2018 09:46:15 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38160 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933089AbeDFNph (ORCPT ); Fri, 6 Apr 2018 09:45:37 -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 9505CE25; Fri, 6 Apr 2018 13:45:36 +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.16 09/31] parport_pc: Add support for WCH CH382L PCI-E single parallel port card. Date: Fri, 6 Apr 2018 15:24:34 +0200 Message-Id: <20180406084342.303945679@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084340.999820380@linuxfoundation.org> References: <20180406084340.999820380@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.16-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);