Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753190AbdGEV2W (ORCPT ); Wed, 5 Jul 2017 17:28:22 -0400 Received: from mail-qk0-f193.google.com ([209.85.220.193]:35835 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751941AbdGEV2U (ORCPT ); Wed, 5 Jul 2017 17:28:20 -0400 MIME-Version: 1.0 In-Reply-To: <1499284942-1899-1-git-send-email-gq@redlab-i.ru> References: <20170618210659.GA3785@sudip-laptop> <1499284942-1899-1-git-send-email-gq@redlab-i.ru> From: Andy Shevchenko Date: Thu, 6 Jul 2017 00:28:09 +0300 Message-ID: Subject: Re: [PATCH] parport_pc: Add support for WCH CH382L PCI-E single parallel port card. To: Alexander Gerasiov Cc: "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , Sudip Mukherjee , Alan Cox Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1732 Lines: 51 On Wed, Jul 5, 2017 at 11:02 PM, Alexander Gerasiov wrote: > 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 78530d1714dc..f00a87cd9ea9 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_ch382_1p, > }; > > > @@ -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_ch382_1p*/ { 1, { { 2, -1}, } }, Didn't you miss a space? > }; > > 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_ch382_1p}, > { 0, } /* terminate list */ > }; > MODULE_DEVICE_TABLE(pci, parport_pc_pci_tbl); > -- > 2.11.0 > -- With Best Regards, Andy Shevchenko