From patchwork Fri Dec 1 17:15:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 13476218 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA037C4167B for ; Fri, 1 Dec 2023 17:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/sXQSofD7DD2gkAHaGbZ9GFcmg81vr8R04KG3fJReRc=; b=Et6wsj1Pbqbe+A xp3CPGaK8z1LbThMMVXMpD/9RbcTmjeHdjod+36+vGGKRl41KG/9nzoSdi3GNg+R06vkGq5a/l5/u J+cHFxMQoks2CUBhfzylkYGYAcysM0gzjlVfRjgIwzkAVq/WraEyVQGBH39e772gUVm9kjolaC1nu 55hiFHlIEEQTxrNbROdrsl4ooWsy1xv0we8JINWzHFkJcVas2C8gyGowN6jMJ2yj1jZ1GkMmrX4hT ZZMQc+XPwvgGGB+X12I3uKpIOZYrFbJorgA/MeXl+mVFolalvtEdO6hW0fby3qnlZ2Et1WLcmYhnG 0KfsRF15aT7El1n2kBvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r977P-00EJ2C-1s; Fri, 01 Dec 2023 17:15:59 +0000 Received: from mail11.truemail.it ([217.194.8.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r977M-00EJ1C-0Q for linux-arm-kernel@lists.infradead.org; Fri, 01 Dec 2023 17:15:57 +0000 Received: from gaggiata.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 6F22E221BD; Fri, 1 Dec 2023 18:15:52 +0100 (CET) Received: from livingston (unknown [192.168.42.11]) by gaggiata.pivistrello.it (Postfix) with ESMTP id 2A3B57F8F3; Fri, 1 Dec 2023 18:15:52 +0100 (CET) Received: from pivi by livingston with local (Exim 4.96) (envelope-from ) id 1r977I-0000Us-02; Fri, 01 Dec 2023 18:15:52 +0100 From: Francesco Dolcini To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Nishanth Menon , Vignesh Raghavendra Cc: Francesco Dolcini , Catalin Marinas , Will Deacon , Tero Kristo , Tony Lindgren Subject: [PATCH v2] arm64: defconfig: increase SERIAL_8250_NR_UARTS Date: Fri, 1 Dec 2023 18:15:43 +0100 Message-Id: <20231201171544.1901-1-francesco@dolcini.it> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231201_091556_334832_83391884 X-CRM114-Status: GOOD ( 10.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Increase CONFIG_SERIAL_8250_NR_UARTS from 4 to 8, the current legacy value is not adequate for embedded systems that use SoCs where it's common to have a large number of serial ports. No need to change CONFIG_SERIAL_8250_RUNTIME_UARTS, see commit 9d86719f8769 ("serial: 8250: Allow using ports higher than SERIAL_8250_RUNTIME_UARTS"). The need to increase this value was noticed while working with Toradex Verdin AM62, this board has 4 serial UART instances available to the user plus an internal one that is connected to a Bluetooth module. Without this change the fifth UART connected to the BT module is not instantiated and BT is not working. Instead of increasing the number to the bare minimum (5) that would be required to solve this specific issue, we increase this to 8 which seems a more reasonable number to have in the defconfig and should cover more valid use cases. Cc: Tony Lindgren Reviewed-by: Tony Lindgren Signed-off-by: Francesco Dolcini --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index b60aa1f89343..ecd365cd1d87 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -448,6 +448,7 @@ CONFIG_SERIO_AMBAKMI=y CONFIG_LEGACY_PTY_COUNT=16 CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_8250_NR_UARTS=8 CONFIG_SERIAL_8250_EXTENDED=y CONFIG_SERIAL_8250_SHARE_IRQ=y CONFIG_SERIAL_8250_BCM2835AUX=y