From patchwork Thu Dec 22 14:56:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nate Drude X-Patchwork-Id: 636669 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 32A2EC4332F for ; Thu, 22 Dec 2022 14:57:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230354AbiLVO5E (ORCPT ); Thu, 22 Dec 2022 09:57:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235706AbiLVO47 (ORCPT ); Thu, 22 Dec 2022 09:56:59 -0500 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2058.outbound.protection.outlook.com [40.107.241.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 282F22099B; Thu, 22 Dec 2022 06:56:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bZJbjFNT13ow3e4gpS+YuAxQ0hIuzl6eU0Rvb128g8gRlyNVOUad86tMsxrxsgnJnLCWNg4+kocLImaitbVTxbxvrB+fFHqnU70Qlnd/BtKAcPwxkotpXD8ItbDMG4jU/PNhF5EEAQwCUWbtAD1MaUHyuxo9vap81gnzOwPd74rIwyoinUShH73zaUa/IHkpIVswRv45vEnF0i1SaViaUQ2TkyPEwN5HP4vKecc9huY4sliJwuzeLS/WnTTgf8pEzFDXYeXJqCgsniLOhLv9MWG+J9CO7tJZ7kap4Zy4ifil3qjfNuDVNvXhlazr+SZDXtbCBhtXMUPDopCOlifYPw== 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=PwXBb+M+ekhZFaA/bOzEnK1rTqm1cxuWQBpPXmRg/WM=; b=OILt/gnhYO8wyfyLtxRHOUXCk9mWp5quN37xFwa4GxN8wmlZGdA4JKKAGeL3aa1mRjGNSNnLekr8WfGXlilWAC18tqdiYPIOKGtvIIT2RNFmhcLi7b9eCSyDj9QnFzTAqdo+KdpHN4LUB33cEC0bMuA82keo888RlrPs+7iJ0zIeSqhGiLXMwihXeGwIzL4VnB9aDF/VF7r8OVyGLfMiB/aH8Sm89nnYGH/qr8ET8RSmlYZ87fcAoamDgWYXGZSm1kC6EO68Cq0uzElAt4LkSN6yMjDv2cLVRzSLIbuKOc1RHBFx10eg+eKiDY9deFymTuxSGXJXOsD6saamtdYC3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=variscite.com; dmarc=pass action=none header.from=variscite.com; dkim=pass header.d=variscite.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=variscite.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PwXBb+M+ekhZFaA/bOzEnK1rTqm1cxuWQBpPXmRg/WM=; b=lbYnUjPQuRT/iyMy2Rh5MB9Jxoqk3Pw+gbhP6Xv65vlyHVLGxGyHu/7TfrakZlg9pny//IfbL8Mml7cIwzQGKU+i9MHfiM2rGSRevaqTmOfP183XP+XT4pOUDRGdbF5achXD9GHShb/LfHRhHkQhpCY9e9SRkHORGR7ke013GDKNREsp1je43IBC5HDWg5Dawnu6eiTCTu9m/x6bfsMg+cbD67oW29G9TNm0KMZhXgRJbP6y+OqabJVY6pjhgQGs64lBL480B8Yl0uIzI00mPXtkdABh87acprkxrX4CkYmekvR7THC3Fw3hxT8DbO/N70n+/nAWOyTVQ27fJ/tASg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=variscite.com; Received: from AS2PR08MB8808.eurprd08.prod.outlook.com (2603:10a6:20b:5f4::14) by DB8PR08MB5481.eurprd08.prod.outlook.com (2603:10a6:10:114::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.6; Thu, 22 Dec 2022 14:56:48 +0000 Received: from AS2PR08MB8808.eurprd08.prod.outlook.com ([fe80::566e:8bca:9034:ba3c]) by AS2PR08MB8808.eurprd08.prod.outlook.com ([fe80::566e:8bca:9034:ba3c%2]) with mapi id 15.20.5944.006; Thu, 22 Dec 2022 14:56:48 +0000 From: Nate Drude To: Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Sherry Sun , Fugang Duan Cc: eran.m@variscite.com, Nate Drude Subject: [PATCH] tty: serial: fsl_lpuart: increase maximum uart_nr to eight Date: Thu, 22 Dec 2022 08:56:34 -0600 Message-Id: <20221222145634.2217793-1-nate.d@variscite.com> X-Mailer: git-send-email 2.38.2 X-ClientProxiedBy: CH0PR03CA0430.namprd03.prod.outlook.com (2603:10b6:610:10e::15) To AS2PR08MB8808.eurprd08.prod.outlook.com (2603:10a6:20b:5f4::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS2PR08MB8808:EE_|DB8PR08MB5481:EE_ X-MS-Office365-Filtering-Correlation-Id: a18a6e31-4ea6-416f-c21e-08dae42cc071 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iX9cRhhHpke5Km+VEOM4k2LMBDTeYsfDOWeNs49oJMNqMAOvF4Z1gCbbJpVtrDf9H28qf83QcjBFnZ0eOs5pj1hvchHHGMOgq4m0Sf7MAAf+O3Zn8AXPnxCmfGTR4bobxGDLXqel8PbRhbDx0oDwPOWacvqTLOdJ9JxXjHoY8sjcSx/WOHUFbEr3NTySMMhsEErTmoVfLdSGiOE9PHSaAj7T+QA9iFO+vDLAha9J+hPJ4DHT8fzGgmgV4L3CP2RWFr1UIqjox7EJzXmVwDeN+xhH+4wlUmmPNjyIRei+Rj7WPoV6W9/53FdGlrwrld86qITp+Kh18VVCyKq4JdCghyYayn/eOzisfGvIhgJHtMUvtzfF9HmQNOYZxdNWqX65H8h5z1CJ5F+v8RU+iCNEkDTt4X4JPLmzim31VFDct+IRMyeCJ1JMd2vUNaCxSJcHhq2QHqox/9/IPYFhRiqNr93kntvloE7qb69W8mSwLG/oangDnQ9BhxdkMs7lMKrEa8wJPHw6xjOyuzlIYlWSqO4AQ+xqoWK1CwAcFkprKW1v5wACSZFcgDb/rifgWU+U+sK6xfFUNDnzCoPyNEECijb/qU2GGWbdWwjig3t0b08yIztzGUQ5l/WixqlAvD0M6TdhO7JhUI6ORW0k6LofTGA9IPltyxYgTySFX7rUzN7jg7T+IvbFl7i7YkHocQmDWiBUWf3nLTHC0dHvbJVC/J44XUfnXdFrEU+juisVhMk= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS2PR08MB8808.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(376002)(346002)(136003)(366004)(39840400004)(396003)(451199015)(110136005)(36756003)(2906002)(316002)(6486002)(6506007)(52116002)(966005)(478600001)(6666004)(86362001)(107886003)(1076003)(6512007)(186003)(26005)(83380400001)(2616005)(8936002)(38350700002)(38100700002)(66476007)(41300700001)(4744005)(4326008)(8676002)(66946007)(5660300002)(66556008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: n4tvosauzdoNiivw97mBO2YNJliXZ93+swLhHQOZuG950rU2mutMLiH3mNCA/SYWbIq+KdGkdgcF9ayezc4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r7bWdYulHBu6Z5Iris2fFcTspRD9+sIfZ5XVdkEGyKgFY+yMs7q24ccpvdbtGTToe1S3EFeeZv5mxNW5weHH9Y/Hj2Qi4cFJKazfeQHFhmdnSeS0kuXNRJA2g7hG81TaN/AWFAmFAxBA1iUuJS+5EaSPVSwrc2XaTLe54ZHSKBUHYZk9/bg6jgZZBy77P2dG6j5iWYqQQdROhul4re68tyzUbuECICWApi3cq3mBpbcnFLak977Yemf+OfZ1qDpgRuFKXUHQC/0QXM5qh3A/8+6Jp0OVY/C50Zny/twRqWwMkQ53HQQOFNikt0NB4abf1SmxyYrQ4Ulm84VIfNegzXT7Ly8TuwmPgSpOQWvhWpq/I0EI9RiiKMgDuSFJu7jVmj7x8mw7A3vEdgNaywRB2jyeSESqghpC+r55hiwu+N60DDtHcl3AKqAdq X-OriginatorOrg: variscite.com X-MS-Exchange-CrossTenant-Network-Message-Id: a18a6e31-4ea6-416f-c21e-08dae42cc071 X-MS-Exchange-CrossTenant-AuthSource: AS2PR08MB8808.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2022 14:56:48.8157 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 399ae6ac-38f4-4ef0-94a8-440b0ad581de X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KRWQuZc9Yrkdz3wqJrzOCpiFQsr5NYdAKZOkBgrB8L497EV6kbJtdu+R/8tL+DSdQJTox61dn6a/wDT57N5o1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5481 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Some SoCs like the i.MX93 have aliases for up to eight UARTs, see: https://github.com/torvalds/linux/blob/v6.1/arch/arm64/boot/dts/freescale/imx93.dtsi#L31-L38 Increase UART_NR from 6 to 8 to support lpuart7 and lpuart8 and avoid initialization failures like the following: [ 0.837146] fsl-lpuart 42690000.serial: serial6 out of range [ 0.842814] fsl-lpuart: probe of 42690000.serial failed with error -22 Signed-off-by: Nate Drude --- drivers/tty/serial/fsl_lpuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 900f9a0e4a5d..2e4af8e7a5b6 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -246,7 +246,7 @@ #define DRIVER_NAME "fsl-lpuart" #define DEV_NAME "ttyLP" -#define UART_NR 6 +#define UART_NR 8 /* IMX lpuart has four extra unused regs located at the beginning */ #define IMX_REG_OFF 0x10