Received: by 10.213.65.68 with SMTP id h4csp706051imn; Fri, 6 Apr 2018 07:35:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+hhzTbHkM58t8TPI5X/66XGSS97AFgNukZou6Hq88MMJtrl+ynd2yMKXHbObDO4fbISrCX X-Received: by 10.101.74.9 with SMTP id s9mr13040913pgq.91.1523025310603; Fri, 06 Apr 2018 07:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523025310; cv=none; d=google.com; s=arc-20160816; b=G7hNGczXybE0vAC8avs9hX3t3FgEEyX0PtMyiM0RR+HyYvqhl9SscuMJdomAsEYIqH dkYPd+8pS8T5TwffDUsdcb+Vv8q30kcaCnv4tUOvsvAWomS5kMDHwws6OwJRPz4xz7db Td4lF6tV4pj8a9nbSwNA0ZXqg22udIGh5OvRa5haqtKGDtWOvDSt3jscV/8W7gu3eMZv R6fxd0DYyxyeqFDOew/UM7+BKIjEjvdE6G+GeiTVWFDnRMLCFovQBek6CYNRa/JxoiX1 xyh3egZ5qZ8UYp9ZCpxp++SgFsWnvX6GXaRNS6sELc3BckKbfB5mwQpkagkqVYrvNBQc 4PRQ== 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=/s5vwO+xlTyHAu021x1jF36VgizMG9+79OLXNmgD5JU=; b=GPwvkGk1oqZy1dyHR1cwvuaRCfQa9tvGMJGy0TotZzGlAa4ICz6rpc8LbVES2C5ABa MrvkMzgJF0VAYkkDwvbOS18vOlWuvC7dkVe4pIONBg0uZFJ2cwxTW/zQ2tVJcHlGvTHb CyQoKRDpxCgyEIk4KUyIplpX6fTV0TfhenOMFUmalskqzljmLn4PoR/hGv935xadFoG4 NN+o0wRvzGtded1pWswsCceSiNWU4IGJ9rAbwe8lk6hm27ItonAN/N/iIH69hrMTmkrN +X62LHyj6GtEg5uLFz+WrHGGUbNeTTlafvAyhiRRdQeJUFqU3cMbjqgehaokSPNuz3Q2 SSmg== 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 q29si8060055pfd.240.2018.04.06.07.34.56; Fri, 06 Apr 2018 07:35:10 -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 S1756159AbeDFNgH (ORCPT + 99 others); Fri, 6 Apr 2018 09:36:07 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59032 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756138AbeDFNgB (ORCPT ); Fri, 6 Apr 2018 09:36:01 -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 88774DC0; Fri, 6 Apr 2018 13:36:00 +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.9 082/102] parport_pc: Add support for WCH CH382L PCI-E single parallel port card. Date: Fri, 6 Apr 2018 15:24:03 +0200 Message-Id: <20180406084342.985576428@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180406084331.507038179@linuxfoundation.org> References: <20180406084331.507038179@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.9-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);