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 */