From patchwork Fri Oct 13 22:12:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cameron Williams X-Patchwork-Id: 733998 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCCC4CDB47E for ; Fri, 13 Oct 2023 22:12:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230297AbjJMWMY (ORCPT ); Fri, 13 Oct 2023 18:12:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjJMWMX (ORCPT ); Fri, 13 Oct 2023 18:12:23 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04olkn2046.outbound.protection.outlook.com [40.92.74.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BBDEA9; Fri, 13 Oct 2023 15:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZkXsTMzKZ857krMwcbSGmrn2F6nUmTNE8Cw/rnHV4muZdc5KgUujtvV3p6PjiH/bkM8Gva7KY5Yu99JljMPZHdn/QkC+q7+c57nMPvMQn/qtZXhLBPFIA4ly+Kmf0orSo8erNJhv97UbuOnsFDiW70HJXXWu4TmoZ1lZFSbbtJInkKxiuG8eWYFctPB2gwqkyD9gAZZGUM5YyoPv0Cs0mtng53aey5FzwmtTs1sdzYs0BIuNvmLMzQziy3sSHJzFD5zxdkIMSmBotf3r3JRKYL12Ftb/1ooBQN0OFq1aNnvue0GpNYLbQiur6JyxeooqXwn+sMtv7xEko3SBVVA7yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ofxqQ/zE0LMnVCW+14YdVSS7O0CU8XBgD6REDb5ITfg=; b=efVrB4qAyyGoygR76AcbmUn5N8JeCNxUC/mM6w/d35ijsm7DhZLmFjFl24xTKXALRfvRSDPTTarx02AINVxdhqx3WnVh6R4PMDzV17MZZSteklb/Z4plyJV2xhuz3W5Jz5gvwnJwj6WT/bMugWjDcL8l3joKIXICINWskT/7ytQ4hK032KRP/X/ZDGWSmlzimud3NfNR8WuIhfzMzhE5pdFNLgMh655GrTXGWkdYWY+u9amLpD8XarZV+ycoM/q/gZphZ1l9r46UayhmQYBrfSGNCVzfgthO8UoG3ItU5IVxMNH5XvSfQ3ceL5NJW+ULlwRST6EqMTyGCWH0oFRxgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DU0PR02MB7899.eurprd02.prod.outlook.com (2603:10a6:10:347::11) by AS8PR02MB8341.eurprd02.prod.outlook.com (2603:10a6:20b:521::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.45; Fri, 13 Oct 2023 22:12:17 +0000 Received: from DU0PR02MB7899.eurprd02.prod.outlook.com ([fe80::b753:178a:394e:af8e]) by DU0PR02MB7899.eurprd02.prod.outlook.com ([fe80::b753:178a:394e:af8e%7]) with mapi id 15.20.6863.043; Fri, 13 Oct 2023 22:12:17 +0000 Date: Fri, 13 Oct 2023 23:12:15 +0100 From: Cameron Williams To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v2 2/7] tty: 8250: Add support for additional Brainboxes UC cards Message-ID: Content-Disposition: inline X-TMN: [lfEczgclUVrMXzubXGOVMLE05PrOfa2S] X-ClientProxiedBy: LO4P123CA0549.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:319::18) To DU0PR02MB7899.eurprd02.prod.outlook.com (2603:10a6:10:347::11) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR02MB7899:EE_|AS8PR02MB8341:EE_ X-MS-Office365-Filtering-Correlation-Id: d65dfd71-7d97-4d05-236f-08dbcc39764a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: D+6305Sstcui2mgXirmgu7N/6AjJyQvHlWQ2V6BSrdUFTE74w8RbJbHinA/CMRQkE2lw0yiVqdyCNa1yVAurPL3ruI3GNQ425LYHADU+JOvzKZuh8UA0IvC7BgPvg8SQBTOSjeytPUCcxUq3Yltsw4HJfPtnPWriLKsWVaJnj/4zXasVlEzqRybSp7V6ueQLJ4ae8vDaRNr1vBX22/vHuv8g76VvH/nfdZj3r2Z/gWXEK3UXqm5XblsUnqbO3jLKxSjmpLW5SnMa8z2dn30T386dvzb+meZbpmM72Y3lO37Zy+W2iIATKi/9TSESESG5hhQnbFoVCU+Y/jkfNZRm7NgdW/0LAm0l3oc8qu7tX6gwDbrx+OFVeElz+qhySE6jV6OqmgA431KTZVPcxF5b7zWwG1dY/uYD3KfCLHEmk9i8wknCuMfsgsWhmffpLJAcTdvyGUnuoRumGYlV7Rq7v/weKJrX9xc7bUU2aNdbxag7uy9JJOG1fOnhCN2PiqP2cwlc/RBxyoS6we50oRkFc+HDjpBziOiChTISBhtpMUKlV0J5kjcnFDaUTiK16tSw9Xb01+OSrk3ashgDs7Ev5w== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: FB7qDX1LAKNwHdMB9ny51dUjnL36aP0F2DmwFZ0+E6ruBRjvVL4apZ5cOhTc0MTPQugoQ9HKF4vSjorXAZj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sua+Iqcn32vtzF2svsS9nZ1MAsjLYq3AOtVxvuF9DQ71ZQeaFV25qsQ1WUnCx7IsoLM+jNVAmSQty/YeTA== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-bcc80.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: d65dfd71-7d97-4d05-236f-08dbcc39764a X-MS-Exchange-CrossTenant-AuthSource: DU0PR02MB7899.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2023 22:12:17.5503 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR02MB8341 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Add support for additional revisions/IDs of the Brainboxes UC range of serial cards. Add: Additional UC-235/UC-246, UC-302, UC-313, UC-346, UC-357 card IDs Add: UC-253/UC-734 , UC-607, UC-836 cards Fix: UC-431 variant note removed as it is a 3-port card, and there is no generic 3-port configuration available. Fix: UC-257 moved to parport_serial as it is a serial/LPT card. Signed-off-by: Cameron Williams --- This is a resubmission series for the patch series below. That series was lots of changes sent to lots of maintainers, this series is just for the tty/serial/8250 subsystem. [1] https://lore.kernel.org/all/DU0PR02MB789950E64D808DB57E9D7312C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [2] https://lore.kernel.org/all/DU0PR02MB7899DE53DFC900EFB50E53F2C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [3] https://lore.kernel.org/all/DU0PR02MB7899033E7E81EAF3694BC20AC4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [4] https://lore.kernel.org/all/DU0PR02MB7899EABA8C3DCAC94DCC79D4C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ drivers/tty/serial/8250/8250_pci.c | 56 ++++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index ecb4e9acc70d..a6527545363a 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -4940,10 +4940,14 @@ static const struct pci_device_id serial_pci_tbl[] = { PCI_ANY_ID, PCI_ANY_ID, 0, 0, pbn_b2_1_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x0AA2, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_1_115200 }, /* - * Brainboxes UC-257 + * Brainboxes UC-253/UC-734 */ - { PCI_VENDOR_ID_INTASHIELD, 0x0861, + { PCI_VENDOR_ID_INTASHIELD, 0x0CA1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, pbn_b2_2_115200 }, @@ -4979,6 +4983,14 @@ static const struct pci_device_id serial_pci_tbl[] = { PCI_ANY_ID, PCI_ANY_ID, 0, 0, pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x08E2, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x08E3, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, /* * Brainboxes UC-310 */ @@ -4989,6 +5001,14 @@ static const struct pci_device_id serial_pci_tbl[] = { /* * Brainboxes UC-313 */ + { PCI_VENDOR_ID_INTASHIELD, 0x08A1, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x08A2, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, { PCI_VENDOR_ID_INTASHIELD, 0x08A3, PCI_ANY_ID, PCI_ANY_ID, 0, 0, @@ -5003,6 +5023,10 @@ static const struct pci_device_id serial_pci_tbl[] = { /* * Brainboxes UC-346 */ + { PCI_VENDOR_ID_INTASHIELD, 0x0B01, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_4_115200 }, { PCI_VENDOR_ID_INTASHIELD, 0x0B02, PCI_ANY_ID, PCI_ANY_ID, 0, 0, @@ -5014,6 +5038,10 @@ static const struct pci_device_id serial_pci_tbl[] = { PCI_ANY_ID, PCI_ANY_ID, 0, 0, pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x0A82, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, { PCI_VENDOR_ID_INTASHIELD, 0x0A83, PCI_ANY_ID, PCI_ANY_ID, 0, 0, @@ -5026,12 +5054,34 @@ static const struct pci_device_id serial_pci_tbl[] = { 0, 0, pbn_b2_4_115200 }, /* - * Brainboxes UC-420/431 + * Brainboxes UC-420 */ { PCI_VENDOR_ID_INTASHIELD, 0x0921, PCI_ANY_ID, PCI_ANY_ID, 0, 0, pbn_b2_4_115200 }, + /* + * Brainboxes UC-607 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x09A1, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x09A2, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x09A3, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + /* + * Brainboxes UC-836 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x0D41, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_4_115200 }, /* * Brainboxes PX-101 */ From patchwork Fri Oct 13 22:13:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cameron Williams X-Patchwork-Id: 733671 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E35CCDB47E for ; Fri, 13 Oct 2023 22:13:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230297AbjJMWNQ (ORCPT ); Fri, 13 Oct 2023 18:13:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjJMWNP (ORCPT ); Fri, 13 Oct 2023 18:13:15 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04olkn2075.outbound.protection.outlook.com [40.92.74.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 620ABA9; Fri, 13 Oct 2023 15:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CC/5F4w2I8PMwCor6XEj9E6Q2+enZiOibC77veZv00FEnPJ/9zbiNlhqE8WoZcityrdKsyc87Y4eYhU/w4hALwP+8OKZ+9hkc58FkJETZ+MiY1wz+ITKkVpgXE4srvIBYxBbmVLK3wIYbCwqRQcaR2jdz0NMcoJMDb9JgRrBxB2p5qgiYZGGsff8ivJ+jkcKugQJ/0KUm5tKsFL0oULiw5KGwg3NU9oBiIzn3UhrQx4f9UBnm5eBDzdvkedr3SzHA9BbCKQim0aIER62CY5hiGIdcjTUhcB0wwIkYXqejk73FVeOhudBd4OK4Y/+8/v/IIKDR98XR56zmv0XD/khMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+uVUpvAKS6kPHl9+s/F6ElXVAo0xRd0kA4t4ORLEmDE=; b=V5+wdbaTWl6bGBqVzzgMSEXOW8hJyuCTl/d/Ht57R+exvIGfRXc821nLsINzQjfcePgxH61MUUJDdbCq22ele2C5czi2lxdXLloJN43YMUVyav8Qlly+44MyIffOWyKu3lQWEaXxyq2GWCX3wugp+4WfZt17UkZu881HGWOCsIVIDP6HT3fhotzBQb4do5sgQGnLXQ3tief/glumhjzjGNJCpMgxYbFL2NGxEzfmgB/vKDZuUwDpXDS2BeuW2dgFWKX2hFCo68g4bX9+mmfV7JtsmR4CV+jCCu3513udS22wfzoMW2Ss3bxNXQa/Ro5yyg76eXL3qDqeE0XQUytAeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DU0PR02MB7899.eurprd02.prod.outlook.com (2603:10a6:10:347::11) by AS8PR02MB8341.eurprd02.prod.outlook.com (2603:10a6:20b:521::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.45; Fri, 13 Oct 2023 22:13:12 +0000 Received: from DU0PR02MB7899.eurprd02.prod.outlook.com ([fe80::b753:178a:394e:af8e]) by DU0PR02MB7899.eurprd02.prod.outlook.com ([fe80::b753:178a:394e:af8e%7]) with mapi id 15.20.6863.043; Fri, 13 Oct 2023 22:13:12 +0000 Date: Fri, 13 Oct 2023 23:13:10 +0100 From: Cameron Williams To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v2 3/7] tty: 8250: Add support for Brainboxes UP cards Message-ID: Content-Disposition: inline X-TMN: [4aVaxmV10EdEX0LUeOqlBGf4ZueY2UTl] X-ClientProxiedBy: LO4P265CA0203.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:318::17) To DU0PR02MB7899.eurprd02.prod.outlook.com (2603:10a6:10:347::11) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR02MB7899:EE_|AS8PR02MB8341:EE_ X-MS-Office365-Filtering-Correlation-Id: 91a4b4f1-c879-4dab-c99a-08dbcc3996fa X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2yA4w2BQ9w+EKkYNX6CQBSeKMmaa9iyMDN52P/05LsjWeI/cNEvtPSQbvITKqqpUxNno89T+adXdrkh+h/9nthkYaxENWHbUFK6VoKGHSBHufSp8NN7wz6PHGY1fUNliJr8qV1+bYVJYgdiaq04lKK4RadNn/LVXmK2GXJWHJEi5oQksrRo3h32xZaK2SqSPhRMAkPaZkC2TQkMvkAgWXB6tuuUsxmMwPvHHMfz90DpxUaekT6J/qSN1mjuSEdtxfW6wky6mWePqw3g0Ud+KQHaVfJraO8/Cevm8LszsTBFEFkHnP7W2swZj75Mi8Stqeq/zZZglrsYaIxblyxpj/VOXSEUKfJHkb1V2Z9BRcxivbUbTUsnQSIN9yaJmezk3yuAODjpG9HPFemaRpmlkJ7p6lgNNpssqcV7fexKEPBZ/RlYrWNyTjbtJ3UJPB7JQ25alwRWFderQ5JIId+vB6Mu/4D0MkgKpAvinHsMdgoo216jUOkpyLOg+R5jwZ+7pRSPaL3MICG5/5lUeTDDWlzmTx47LAWDWXMfbLqH1knEYpioXOnHLtlvrqojq853djdKrVZhFql1sfUgIF28RSg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uJ2Bk1evrotphbtg3sD0NTfI2twqukV2tM6PaiFWbt/AQfAvDU759JUQ01yp/qS6WSsaFGdQeYwylWqO8Khn9yoyOVFfegfkgFQfcJfUXPkjsNZ7dBMRn6tBHTOqRI4VuEnJgzy23xoLJm3/OoGWo6oYzrb/vnmFZnJrn4Zh2XZao8yl5LPF7Xq+6c5llISXfyjzK3FMN2RLwxumKvPCb7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ant-Network-Message-Id: 91a4b4f1-c879-4dab-c99a-08dbcc3996fa X-MS-Exchange-CrossTenant-AuthSource: DU0PR02MB7899.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2023 22:13:12.3609 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR02MB8341 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Add support for the UP (powered PCI) range of Brainboxes serial cards Signed-off-by: Cameron Williams --- This is a resubmission series for the patch series below. That series was lots of changes sent to lots of maintainers, this series is just for the tty/serial/8250 subsystem. [1] https://lore.kernel.org/all/DU0PR02MB789950E64D808DB57E9D7312C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [2] https://lore.kernel.org/all/DU0PR02MB7899DE53DFC900EFB50E53F2C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [3] https://lore.kernel.org/all/DU0PR02MB7899033E7E81EAF3694BC20AC4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [4] https://lore.kernel.org/all/DU0PR02MB7899EABA8C3DCAC94DCC79D4C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ drivers/tty/serial/8250/8250_pci.c | 60 ++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index a6527545363a..1c46b65789c9 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -5082,6 +5082,66 @@ static const struct pci_device_id serial_pci_tbl[] = { PCI_ANY_ID, PCI_ANY_ID, 0, 0, pbn_b2_4_115200 }, + /* + * Brainboxes UP-189 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x0AC1, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x0AC2, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x0AC3, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + /* + * Brainboxes UP-200 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x0B21, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x0B22, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x0B23, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + /* + * Brainboxes UP-869 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x0C01, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x0C02, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x0C03, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + /* + * Brainboxes UP-880 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x0C21, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x0C22, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x0C23, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_2_115200 }, /* * Brainboxes PX-101 */ From patchwork Fri Oct 13 22:14:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cameron Williams X-Patchwork-Id: 733997 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35711CDB47E for ; Fri, 13 Oct 2023 22:14:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231500AbjJMWOL (ORCPT ); Fri, 13 Oct 2023 18:14:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjJMWOK (ORCPT ); Fri, 13 Oct 2023 18:14:10 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04olkn2053.outbound.protection.outlook.com [40.92.74.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 331D2A9; Fri, 13 Oct 2023 15:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZqcaaqNj66COcAHzY7ICqccnA/X3F8mAT0M17pr0JIzQh35KxIoxYczEr5aQJ0m2mG6iMOIl5uxrT+pSspPua2tXNgCkPZmMnqdm/yYh/+s8KUkQfLKV5NDSzJE3Q/rIwE6PaxlpmqAmobI3v1i+2E3cNTDS2uoZgUYzFlw8EPmoSFkBPuc8NQKopHH3jeNdlxGEq4z0I8bgjpVEMKfZXLjEZKWal2NW+LuUZ0qR1J/NgiTVZWX0rTYSnRqy4l6O0MbY7DFZ8l/6XLvqISANePXceqAu7jt2IZ8r4ObW5Kmr3HA/WcS6J5+wLWHmAj1V87bj5oSdV0Ja3OU9hfUHIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=z/kn0dclQXBv32mwRvO4hzvp/kw3qHCLQPzJsBk5F4s=; b=kqflxpGzLWrNum14v5rTEE5vcv9Xcq7QjT3PwnO//nvsuMKJXn+0Y5ok7zUvmI7PDH7Ey2sEuSepi/ZPRMzyMHvVEdQ25gpYSqAuuMvrjQi41bMfPgvl3OWykewUJnw+llazXmJjx1fbbqQvPTobSFzW81VipDsmBCLQdNiV6yS7zEjfwLGm32P4LuEG+quccg/MbxejDnRXdDzIFx3eqSLiTZx0S593kv5qutM2CC96Y3yFnA8qGfoaAsLaEurah/BnLHebKXoo5E7h95c8oSErZazxswExehwhE6DBE4MF2htfpPODYZ+xUV2+4F96rtTKtXbF8iYYj1RcqBh+Iw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DU0PR02MB7899.eurprd02.prod.outlook.com (2603:10a6:10:347::11) by AS8PR02MB8341.eurprd02.prod.outlook.com (2603:10a6:20b:521::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.45; Fri, 13 Oct 2023 22:14:07 +0000 Received: from DU0PR02MB7899.eurprd02.prod.outlook.com ([fe80::b753:178a:394e:af8e]) by DU0PR02MB7899.eurprd02.prod.outlook.com ([fe80::b753:178a:394e:af8e%7]) with mapi id 15.20.6863.043; Fri, 13 Oct 2023 22:14:07 +0000 Date: Fri, 13 Oct 2023 23:14:05 +0100 From: Cameron Williams To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v2 4/7] tty: 8250: Add support for Intashield IS-100 Message-ID: Content-Disposition: inline X-TMN: [SH+USlmHeswGiUc+Ka0DN9WD87injK49] X-ClientProxiedBy: LO4P302CA0015.GBRP302.PROD.OUTLOOK.COM (2603:10a6:600:2c2::11) To DU0PR02MB7899.eurprd02.prod.outlook.com (2603:10a6:10:347::11) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR02MB7899:EE_|AS8PR02MB8341:EE_ X-MS-Office365-Filtering-Correlation-Id: f1d884c6-7844-437f-1ce1-08dbcc39b7bc X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pBZdQ6p/BYlAp9jUZ3/XPqSHguC1DYN4k7vu1TJyR+U4ypDAnviAzgmUWnS0ILHPoHMIs8zsrB7tmofI8GmJ7LtjjD5BKftMp6dJ3jLuvn+Mhg0796scs9ty0tjGubQFenREVfKWmPaNf+/D5KKWL8OC2GrVcY53qx3G1f610yl+JKZHptTDTlOlYc3Xhpr/NQibqJgqsXxThI84hwjmxv1KYyIvb3A/iHe3JdIW6UZuOQlU5hFMF8NnwYD8VWyWXvRTSvauZFWeXpdiPXianlYA8liSM57+baouI0d9TZTu2ZLinOuZtShYXYsPZrv9TD14PHIgAi13Ber9CQ+ZqA3uSafwJtKUpwQ5m4wQusF++3a5xzj9AA7Sd/YjVd16jtYQJkeCK4S+NGDFGuC0B6hIu2I88ppD89edgyO8vUcYlUQ2Jjuhxf9OC7npbsivySRJkcsMkJ5jycF+/1bPlkltBllIIFqvFN9vGS56p/exq9l4T3fyEqDxxd1Er59KWu+SJDSVkFdNNLmjB1npUnCz+hA+tDrJ2LRVwpO1UlilQlEUQm/NXGcu2ZyAzlHOyDvXHWbZBcmUxgHLLhJ8hg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ug0lpZb3V3fdNSAORwxChkfhFY4tBrvcLJ56JjGGq4iPLlrbv4X3CZfm8lrWJxXCC/aHuDKSl9eiXZSqgSeEQl3f/HAW8E+IfYogHiY0FthxuG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ERKLctFKOGszrlh4iLmWzNM7ebnPlgVd81CZqiE53XAa4YiZLAs+yf6w== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-bcc80.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: f1d884c6-7844-437f-1ce1-08dbcc39b7bc X-MS-Exchange-CrossTenant-AuthSource: DU0PR02MB7899.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2023 22:14:07.3276 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR02MB8341 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Add support for the Intashield IS-100 1 port serial card. Signed-off-by: Cameron Williams --- This is a resubmission series for the patch series below. That series was lots of changes sent to lots of maintainers, this series is just for the tty/serial/8250 subsystem. [1] https://lore.kernel.org/all/DU0PR02MB789950E64D808DB57E9D7312C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [2] https://lore.kernel.org/all/DU0PR02MB7899DE53DFC900EFB50E53F2C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [3] https://lore.kernel.org/all/DU0PR02MB7899033E7E81EAF3694BC20AC4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [4] https://lore.kernel.org/all/DU0PR02MB7899EABA8C3DCAC94DCC79D4C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ drivers/tty/serial/8250/8250_pci.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index 1c46b65789c9..b0a632415d8e 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -4913,6 +4913,12 @@ static const struct pci_device_id serial_pci_tbl[] = { 0, 0, pbn_b1_bt_1_115200 }, + /* + * IntaShield IS-100 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x0D60, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, + pbn_b2_1_115200 }, /* * IntaShield IS-200 */ From patchwork Fri Oct 13 22:15:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cameron Williams X-Patchwork-Id: 733670 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F821CDB47E for ; Fri, 13 Oct 2023 22:15:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230469AbjJMWP3 (ORCPT ); Fri, 13 Oct 2023 18:15:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbjJMWP2 (ORCPT ); Fri, 13 Oct 2023 18:15:28 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04olkn2095.outbound.protection.outlook.com [40.92.74.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82462BF; Fri, 13 Oct 2023 15:15:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WgjvUsG0D+S18Qjl9hNNN0BDttEDp5YkTMMdasOCRGOImAc4kJAua4GkxKjHzq7fi5DoaRDvFLj8P01rTCa0eTmJKftlgZpsLoGDxMULBe7oUMJp9RWaXHAKVLtmqJYh+0vlXuiZ2h/PqQsKfuEDt/B1A0drMxp2lxw5FOW4+CUn96bOkdsI3AnwEC/TtThiMvmy02xHwhi7jGawb5Ou/MYRDtKJ2wWZ/7ExgDCpYak6Oj/ls0WFJBxLmGWoag5BiDV3t87JJ5wccnF8AyT+8qjDZlXlJ+jMeRUTC5odyXmSihBA/8SXXE6EDy/aVF50wZgxn6vfTXZ/nQZfLjZinw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ABXGUqWW485in+n8TfQ4QYk1w+PvdDA/dCIEaBq7c1c=; b=IPg9KiL4L4JPKn3GK7/L/eqbOdZlj1mJtOdq82YRVUtcbFA8PNncN7I3bu/cvJDf/qlPhadoZV+t1mfJCWHkyI+BrXg+Pue32ZzzlHeioH8h+OhA5aSVwVCzVXTjF4bQprxYLfCG+OLXBRqS+3iuTHWUqhREKYxC7bgMZtIzact2+dYcdhyBroonryuwd6DNfM54tdvW0DVfHNwLlfWlQPA85O6lHoj/g7VciKcZOlRwMPvBQhK1dNX3yUss0MbDDAmp12Xz47/r2X+IN58K0PXurHTLkj3aiPO+mYWnWh8TSfR2e7J8BnBJbV00+w9fTQfiCOr8cdqsEHUWyuADpg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DU0PR02MB7899.eurprd02.prod.outlook.com (2603:10a6:10:347::11) by AS8PR02MB8341.eurprd02.prod.outlook.com (2603:10a6:20b:521::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.45; Fri, 13 Oct 2023 22:15:23 +0000 Received: from DU0PR02MB7899.eurprd02.prod.outlook.com ([fe80::b753:178a:394e:af8e]) by DU0PR02MB7899.eurprd02.prod.outlook.com ([fe80::b753:178a:394e:af8e%7]) with mapi id 15.20.6863.043; Fri, 13 Oct 2023 22:15:23 +0000 Date: Fri, 13 Oct 2023 23:15:21 +0100 From: Cameron Williams To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v2 5/7] tty: 8250: Add support for and fix up additional Brainboxes PX cards Message-ID: Content-Disposition: inline X-TMN: [M/IfLIGKqsbs0Cfb8Aqd1B0VLo+Nwv87] X-ClientProxiedBy: LO4P123CA0395.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:18f::22) To DU0PR02MB7899.eurprd02.prod.outlook.com (2603:10a6:10:347::11) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR02MB7899:EE_|AS8PR02MB8341:EE_ X-MS-Office365-Filtering-Correlation-Id: d8e43b69-605d-4a09-1e39-08dbcc39e510 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uBojS9ITZCUrNskZZVvqHZcvcCXRFj8D1EigiH88Ld5F3JjTHQ6o/o6tE7AwN8AKqiDpUrfw3vemENyYehYsmTvGv/XjetN5HD7k/d3QpojynnlVRHeHdrhDDXExorOcMSk//s16bffpxkxRHHPG7vPIs/h++eMNKhVqSwaCVUHcjZh2i8MOkaOcfxWG3GfvHx/iOIuFiJ9hRwlB7hX8fow0tyyHeCJ/6Hc+9E/Xu58cOoipvo30iZefcpYS0B0k1WMuDq9oDmXocRzSU02LLmXpJ4tOfJIzE0/hDetAa+MAyXfFdpF3n/rO/bRqSLoXL4knjXOqMPYW04IcSEytM2KxzBKNRY+yX4vwujmzyIpPmn3XyiEqWOJL72ptVMMPrkqcGoL3+bEuNENDeNXJex4RsGxxOxN1YUF0K9UClVrlPYtH1uiGClvyso0QpYjRPcx38pJrSjK3KtpxFyCiqLi7SYHLJbpL612dVT51wpAmmHnxQrjDuzyVZdJ+vFVdpXVqhHXcPVwuy18wQyjSs1Eo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RuMpMBGcraST2HxLViQ15MlGk+C3XDNfQnOY3wB7QYaCjeB9SnyMjFMpP81stT8uML2SsnyhE/ny0i8hoLnOxjnduTBbNCXpwJyhXVroYZQk8do8TLbfyTLD8R/u/Nac+RERs8hVzKIf85Is8C+O/aboPD2h9hV4hTrelp5j/IYYZdXGvvt6XkMFMfjjBBoTCpmeENJ2S+qXsFE5fyRuYivEk/5OyGypv9gK24DuXP8T/FDMgl1hJrKCt4uq1eyZzR+iAh74/3hvEzBpLOS61CwUQA== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-bcc80.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: d8e43b69-605d-4a09-1e39-08dbcc39e510 X-MS-Exchange-CrossTenant-AuthSource: DU0PR02MB7899.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2023 22:15:23.3702 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR02MB8341 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Fix: PX-257 Revision 3 has 2 ports, not 4. Added: PX-275/279 card Added: PX-475 card serial port (LPT port is in parport_pc) Added/Fix: PX-857 is a variant of PX-803, add note. Add additional card revision Add: PX-820 card Fix: PX-835 is a variant of PX-846, add note Signed-off-by: Cameron Williams --- This is a resubmission series for the patch series below. That series was lots of changes sent to lots of maintainers, this series is just for the tty/serial/8250 subsystem. [1] https://lore.kernel.org/all/DU0PR02MB789950E64D808DB57E9D7312C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [2] https://lore.kernel.org/all/DU0PR02MB7899DE53DFC900EFB50E53F2C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [3] https://lore.kernel.org/all/DU0PR02MB7899033E7E81EAF3694BC20AC4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [4] https://lore.kernel.org/all/DU0PR02MB7899EABA8C3DCAC94DCC79D4C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ drivers/tty/serial/8250/8250_pci.c | 38 ++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index b0a632415d8e..b0e7354ba119 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -5180,7 +5180,7 @@ static const struct pci_device_id serial_pci_tbl[] = { { PCI_VENDOR_ID_INTASHIELD, 0x4015, PCI_ANY_ID, PCI_ANY_ID, 0, 0, - pbn_oxsemi_4_15625000 }, + pbn_oxsemi_2_15625000 }, /* * Brainboxes PX-260/PX-701 */ @@ -5188,6 +5188,13 @@ static const struct pci_device_id serial_pci_tbl[] = { PCI_ANY_ID, PCI_ANY_ID, 0, 0, pbn_oxsemi_4_15625000 }, + /* + * Brainboxes PX-275/279 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x0E41, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b2_8_115200 }, /* * Brainboxes PX-310 */ @@ -5235,18 +5242,39 @@ static const struct pci_device_id serial_pci_tbl[] = { 0, 0, pbn_oxsemi_4_15625000 }, /* - * Brainboxes PX-803 + * Brainboxes PX-475 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x401D, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_oxsemi_1_15625000 }, + /* + * Brainboxes PX-803/PX-857 */ { PCI_VENDOR_ID_INTASHIELD, 0x4009, PCI_ANY_ID, PCI_ANY_ID, 0, 0, - pbn_b0_1_115200 }, + pbn_b0_2_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x4018, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_oxsemi_2_15625000 }, { PCI_VENDOR_ID_INTASHIELD, 0x401E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, - pbn_oxsemi_1_15625000 }, + pbn_oxsemi_2_15625000 }, + /* + * Brainboxes PX-820 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x4002, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_b0_4_115200 }, + { PCI_VENDOR_ID_INTASHIELD, 0x4013, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, + pbn_oxsemi_4_15625000 }, /* - * Brainboxes PX-846 + * Brainboxes PX-835/PX-846 */ { PCI_VENDOR_ID_INTASHIELD, 0x4008, PCI_ANY_ID, PCI_ANY_ID, From patchwork Fri Oct 13 22:16:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cameron Williams X-Patchwork-Id: 733996 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B27DBCDB47E for ; Fri, 13 Oct 2023 22:16:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232320AbjJMWQV (ORCPT ); Fri, 13 Oct 2023 18:16:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232326AbjJMWQU (ORCPT ); Fri, 13 Oct 2023 18:16:20 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01olkn2093.outbound.protection.outlook.com [40.92.66.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E775BD7; Fri, 13 Oct 2023 15:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jszHjxoFxDvqi6oeBEXvqN2NHWJg7r2apCo+sDX1VaP9ILjYbDaP/s3oIYBAvWnMdy/eYQ0D1KMymx2NeS1bktjQj/C3Y+bDYQ8zXEkS4WDLkRbuyKETEMcXDJGONF0mNilRqG9qCKTTEL112HF4CMAha9tlqLr8A+NHDi4UdNjc7H14+FnG0WV05xmx1/Ep35J9A2FdzPn5UYEUPQKnKfQbR2egE9Sncg4J5LIJtPll1ylN0ZjZPqRW2E7ms5iNKuKgCl8/7SMFrB7Bkiukk7Sj0DbjoqKDCP6FDzhPz0tB/SPetgDKfhcOdz59nHEIXJpFqYlxeAnBk8vJp8MBKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=F4wR7lZXdebwtn9hlVVkbZT0Tqw5iT4VaBmvmUZ2v6g=; b=ENRyRBtOxuW9xNLwrvc6cIJTEy8FUr8RRBzUPMZt+MRtxdegIukHrkggrgtSAIEoUFmBC9nSnUOQUQ9G26P/d8PevJMXX20ylVN/DA0vcvbz/sxR08m/8FHe0m84qbQqEX0qGmqDAERIfTdlOtpgSROmYkGal0wtJXwfs33aiI+KWg05X2Upz7SF3vkXP1prO2sEQFUWzHymM3DIpo7yNrgMhyJRddLJcSQo43mzwofHnQx8ee36Ji+jc5JmDQp0WS+uMQpFuN+Dckgu0LUlhDVTkMz3Bmq7wXbau0OyOQhPzRagXGkwsmob/hx7JLVq45dSveQVZdnR62R0hrg3cw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DU0PR02MB7899.eurprd02.prod.outlook.com (2603:10a6:10:347::11) by AS8PR02MB8341.eurprd02.prod.outlook.com (2603:10a6:20b:521::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.45; Fri, 13 Oct 2023 22:16:15 +0000 Received: from DU0PR02MB7899.eurprd02.prod.outlook.com ([fe80::b753:178a:394e:af8e]) by DU0PR02MB7899.eurprd02.prod.outlook.com ([fe80::b753:178a:394e:af8e%7]) with mapi id 15.20.6863.043; Fri, 13 Oct 2023 22:16:15 +0000 Date: Fri, 13 Oct 2023 23:16:13 +0100 From: Cameron Williams To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v2 6/7] tty: 8250: Add support for Intashield IX cards Message-ID: Content-Disposition: inline X-TMN: [f6EUo4TWbQHYTJH3Ic7zzXNDfNZnyNey] X-ClientProxiedBy: LO4P123CA0081.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:190::14) To DU0PR02MB7899.eurprd02.prod.outlook.com (2603:10a6:10:347::11) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR02MB7899:EE_|AS8PR02MB8341:EE_ X-MS-Office365-Filtering-Correlation-Id: a9bc4c49-0df4-4388-42cf-08dbcc3a0424 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aoAAiFunFG5/eczJ1fjtybF50JvxOaqomUzmycwtai8pGmbF7PHslXVMsY5NKK3vN0r7Zlh9LBveejOMYdzbYK4Q8KRNe2q/zz7Fio8Bzyc7T4Mf2nV1fKdcK4LXMfCmN+bln2WfOmLPHRQyvmx7JeA7bm+Qs8to8NlGDszKkbI0by7/Nx9HYfjy30KaGMnLGuReKaXaKRDB4kgqY6euKqNYBbhfH5RJC7Ftz1f6GxOIllg+FbdZ07TKr+KrY0SPKFeMaA/Eem4WnHIK9MJwhMBm97MDxpq1QHpRox/KoRUFtdPzol8ZfT0mYL0LBqlQq/D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Nv5NvoJPC5yHY/jERpC6LWlBlJa5nGapWh24TKYEf/KtyjJMF92QJug1+dofjQD8zmoD7+OEC/zYo4dcYABt+Kb3wGJ4pG68wGPVcCY1SO8y3OXAh7Pgog3auZvxyji6x2WDmJpJLkiFQ7J6DhsTgRWsMSK7abohgB6QQjGYYLnrNcG/UfmBDKgFdunY048x6lkTjlln4piniLvChDEBDnbDAykROEuwgorb+4E7aO6WBCBl2/S3zSQGmRv24ZHdh/Y6QlBZBbhNgk1x32PoBLtAjIkarpnU8nt81je6ggP1bmtcpP0A/Cvs4+I19BVx7sgTsbToqY5bvFarE8zsiqXrDIskstxi1Ccpp0MnqZ5ywxM4PFbiWJ3XjjcZqZ56tClyBjtvRx0caT+u9RBpPxBQNWMGEDUD2ZNyspFQ1kaRJs5HmJWXOFj8r5SxACWr5cexzzAymGU1kXNKyH3KW7LLoVjZQsw0fr3w== X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-bcc80.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: a9bc4c49-0df4-4388-42cf-08dbcc3a0424 X-MS-Exchange-CrossTenant-AuthSource: DU0PR02MB7899.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2023 22:16:15.5172 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR02MB8341 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Add support for the IX-100, IX-200 and IX-400 serial cards. Signed-off-by: Cameron Williams --- This is a resubmission series for the patch series below. That series was lots of changes sent to lots of maintainers, this series is just for the tty/serial/8250 subsystem. [1] https://lore.kernel.org/all/DU0PR02MB789950E64D808DB57E9D7312C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [2] https://lore.kernel.org/all/DU0PR02MB7899DE53DFC900EFB50E53F2C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [3] https://lore.kernel.org/all/DU0PR02MB7899033E7E81EAF3694BC20AC4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [4] https://lore.kernel.org/all/DU0PR02MB7899EABA8C3DCAC94DCC79D4C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ drivers/tty/serial/8250/8250_pci.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index b0e7354ba119..82b445ddedb4 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -4931,6 +4931,27 @@ static const struct pci_device_id serial_pci_tbl[] = { { PCI_VENDOR_ID_INTASHIELD, PCI_DEVICE_ID_INTASHIELD_IS400, PCI_ANY_ID, PCI_ANY_ID, 0, 0, /* 135a.0dc0 */ pbn_b2_4_115200 }, + /* + * IntaShield IX-100 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x4027, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_oxsemi_1_15625000 }, + /* + * IntaShield IX-200 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x4028, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_oxsemi_2_15625000 }, + /* + * IntaShield IX-400 + */ + { PCI_VENDOR_ID_INTASHIELD, 0x4029, + PCI_ANY_ID, PCI_ANY_ID, + 0, 0, + pbn_oxsemi_4_15625000 }, /* Brainboxes Devices */ /* * Brainboxes UC-101 From patchwork Fri Oct 13 22:17:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cameron Williams X-Patchwork-Id: 733669 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE787CDB47E for ; Fri, 13 Oct 2023 22:17:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231814AbjJMWRu (ORCPT ); Fri, 13 Oct 2023 18:17:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231500AbjJMWRt (ORCPT ); Fri, 13 Oct 2023 18:17:49 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01olkn2029.outbound.protection.outlook.com [40.92.66.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FE51A9; Fri, 13 Oct 2023 15:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NFrANLHFUkCoIQrpLOx0mDRZXH23oNvtK5Jm7hLTmANW71aau1rphj3fkU5yv+LetCqraU9gyRo10EwunKDGljUn7TqdPiWHARZ09UZeNT0Zb+KHuQ9KPret5iNTzidcLzpyzf/Ztohh8OyWFDcH9dsC1GUo6bLZiV8G769VKf0p/fLBdrI9Qn0MXg5MTDmuIn10uFA1Kjpbd5jyiHqMetuaQUPU88KFdf0eRJ3pgmE3jBWyy8iUFhdhz9yuYPmR7ApHzput2rAd9B9W28WQottGLdfQiwdK/0uPhJWGa6Lx5u7Ay4TRCOcgodVFIpdzq9fZtl3vaDbc+THl4DKXEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=b/aUVxsQiu6kJLxJR8AfNKIUBXHj47MbuPNjalD0Yg8=; b=elX3VkiDYeDlupLeL0bsTboyACTnquWs3fyn+MY47YMEqSE9/XjCySo2VhxzCZvlQMLay65OwDtACQ5/j/+v/vbuSD+i7cay0H8T7iGwAz/jeTUUVyxyhQ+VKCaqwFBUvY+P2az2CQrGRS4YKE1z3susgblgO57sgSokGrsX82GWlunWcXmW+GJ4j0UqUxf0iJNuQzOqCaOlGQCn6tXMAKEFZrtQReZDGVRnABsXmaZbis5BeLZt2EatWhYhkIdZc/WKL2+J6E/MayDxYun+JMjhtsjEQxIpU7rJhhBy+B/8z/nh8j/RiD3NMxckxDakY3+8JhtJsH5PcPCx+BCZkw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DU0PR02MB7899.eurprd02.prod.outlook.com (2603:10a6:10:347::11) by AS8PR02MB8341.eurprd02.prod.outlook.com (2603:10a6:20b:521::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.45; Fri, 13 Oct 2023 22:17:45 +0000 Received: from DU0PR02MB7899.eurprd02.prod.outlook.com ([fe80::b753:178a:394e:af8e]) by DU0PR02MB7899.eurprd02.prod.outlook.com ([fe80::b753:178a:394e:af8e%7]) with mapi id 15.20.6863.043; Fri, 13 Oct 2023 22:17:45 +0000 Date: Fri, 13 Oct 2023 23:17:43 +0100 From: Cameron Williams To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v2 7/7] tty: 8250: Add Brainboxes Oxford Semiconductor-based quirks Message-ID: Content-Disposition: inline X-TMN: [UnqAW8LsBGo7qdpPLT5U/47sAHMKj3wV] X-ClientProxiedBy: LO4P123CA0577.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:276::21) To DU0PR02MB7899.eurprd02.prod.outlook.com (2603:10a6:10:347::11) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR02MB7899:EE_|AS8PR02MB8341:EE_ X-MS-Office365-Filtering-Correlation-Id: 5d2578f6-0f94-4c90-5cc1-08dbcc3a39aa X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I3eM6MfTwaz/UbV/XS79bm1Qbpm0DqssTKm0xOG4WijO9au2CHxp2t2OMh7/DDcjZDUlNdTslBalP0fAYMuzsYhGUCUvLadkdh+FY+g3w3GHWApr2LPwBOq8lnCVVd8nonhlbe8GKZ1tiD5YdJrGmzvxTUNdmdXnlvCV2fdZtE+EhoGgr5+w4dwY4zecVQzoi1mUZJ5yssM8HFRQOyUyUpNIIj4VP1U6M+Bbxw47NQWoevXkq0hyjbyx7EGZRFJu6Q1/v6l2PBOSLaMYcv1gnLn671NPnICh+VNJKJvyjg6dSlIHb82kZvSUJesLq8iY4D5pouDAanJ5GyLxdhfj9ymeGag6Hc5lGVkQIJLHQH/oBUq5xxfA398Cas9GTOelXCxvuTJeIIDuGgeycccXEjke+qFxGgeAo3qWeyGft6HWWltHgMYAzHOTdP71SBoYzlEDbDd+E6vYJLuYOIXkCPfh5/kua1U/dUFpkd4Yaw/nvKWpWOMSPTNAnqIIGCwwWcdJFC7xfVOkLR4XS/6+ncP0QL8gSthJdSES8hUPJJ01EtgEjARuTcjYOrTxtOVME3a1JIoSRAaLxoN5yW/oLg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zxAQ1ZDlStAZxdD/HXygU6MykDgi/9GMykVYbBO/uVHuMMbUxnHEfhIAC2vMorfw4716O69cQbYVi+qq98ATl3OCzwPvewtNq71MVQPCC2F6dr00sD/MSxQLFsHviXGBFMyRrXOFAl2xlRhcbwtfkUUPbxHCfx3BWMVp7T2F30spMyUBLec1coffVRxuNA8zWdnkMoi+PCj9ihrKhdQ4UalpfaQJT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Tenant X-MS-Exchange-CrossTenant-Network-Message-Id: 5d2578f6-0f94-4c90-5cc1-08dbcc3a39aa X-MS-Exchange-CrossTenant-AuthSource: DU0PR02MB7899.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2023 22:17:45.3233 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR02MB8341 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Some of the later revisions of the Brainboxes PX cards are based on the Oxford Semiconductor chipset. Due to the chip's unique setup these cards need to be initialised. Previously these were tested against a reference card with the same broken baudrate on another PC, cancelling out the effect. With this patch they work and can transfer/receive find against an FTDI-based device. Add all of the cards which require this setup to the quirks table. Thanks to Maciej W. Rozycki for clarification on this chip. Signed-off-by: Cameron Williams --- This patch requires patch 5 and 6 in this series to have any effect. This is a resubmission series for the patch series below. That series was lots of changes sent to lots of maintainers, this series is just for the tty/serial/8250 subsystem. [1] https://lore.kernel.org/all/DU0PR02MB789950E64D808DB57E9D7312C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [2] https://lore.kernel.org/all/DU0PR02MB7899DE53DFC900EFB50E53F2C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [3] https://lore.kernel.org/all/DU0PR02MB7899033E7E81EAF3694BC20AC4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ [4] https://lore.kernel.org/all/DU0PR02MB7899EABA8C3DCAC94DCC79D4C4F8A@DU0PR02MB7899.eurprd02.prod.outlook.com/ drivers/tty/serial/8250/8250_pci.c | 147 +++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index 82b445ddedb4..8242918970f6 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c @@ -2429,6 +2429,153 @@ static struct pci_serial_quirk pci_serial_quirks[] = { .init = pci_oxsemi_tornado_init, .setup = pci_oxsemi_tornado_setup, }, + /* + * Brainboxes devices - all Oxsemi based + */ + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x4027, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x4028, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x4029, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x4019, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x4016, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x4015, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x400A, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x400E, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x400C, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x400B, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x400F, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x4010, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x4011, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x401D, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x401E, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x4013, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x4017, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, + { + .vendor = PCI_VENDOR_ID_INTASHIELD, + .device = 0x4018, + .subvendor = PCI_ANY_ID, + .subdevice = PCI_ANY_ID, + .init = pci_oxsemi_tornado_init, + .setup = pci_oxsemi_tornado_setup, + }, { .vendor = PCI_VENDOR_ID_INTEL, .device = 0x8811,