Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp886547rdb; Fri, 1 Dec 2023 00:48:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHn5cgClo02jG6NI8326kK8P5trOd8blAe7RP7vw8uWapCTI8/yBkPjlOQGrjFb8L//fVeX X-Received: by 2002:a05:6870:7022:b0:1f9:6155:328c with SMTP id u34-20020a056870702200b001f96155328cmr30254450oae.44.1701420511584; Fri, 01 Dec 2023 00:48:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701420511; cv=none; d=google.com; s=arc-20160816; b=QDnowf/BHz9VZ2snHrqIXIHxEu8FYp3mAdKsBiPH9bJ5OSYIuUMU6JEehJ9q2EDelz rJRs/qcayeJ8MWL4lfCfJGWO8+RT7s0cmuQfteYaD+Y8wL1kcb+UlORvwzzUOt+4Mr2N jm5pcl76HbmjW0w9Vr+X7LL3nrutsbw4OcVinSS8YmqCzOWpE+VZbAgh6lPXqfBB2zAC krLtWPkDBGI68oh/mPApSiKHn/kb6jUSO7dKy2H2fadVyD63V6AHtk0JNW8RhJxLHO2r rcnr1LQxi+7exiJG7EKznxSprEH8Fce+4ylLn0Btga90o9nIJjvLfnRBut218mF981sg j+HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=5SHsdm9Np11KzZzLGcFU+5kJjTWqcRKtXCF+42ptUys=; fh=VOLyeLhfgY2UskRNHMwwwd9EkAooZjI0flTH+GhvVqk=; b=atJpuADklilkU6cou6jne0WQiQGvLOQeGm610wi/zjAra9ovpMNBvlAzzLF68VKl+e L2DoVRzjzkrkObPt65S58tc60dt6YcyTFYuRl+Z7t4QQsgpnUhU2J9ULADGjTCDiPDOl 4ZbnT0100KFt0XW8phuwJZ87RYpx4zH5PW5rIXPxw9r0g6MePiLSScyzzvFuJUlc68si vLuWcTBtCcACJIX7lDTXrfMZZPnktaEoQkTXCPhmDbnTAT7JM5mSdcCj1q0/0qbVOKh6 NdAfiPHtcn2oFwcG/jPUc0ECSsgUAd9P77zBKistvNsxeY3Djjsw+hmotT0yGDscpD7u tlSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id s186-20020a635ec3000000b005b8857bb156si3027660pgb.463.2023.12.01.00.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 00:48:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id EF28D82516F5; Fri, 1 Dec 2023 00:48:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377902AbjLAIsN (ORCPT + 99 others); Fri, 1 Dec 2023 03:48:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377905AbjLAIsL (ORCPT ); Fri, 1 Dec 2023 03:48:11 -0500 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 125CFD1 for ; Fri, 1 Dec 2023 00:48:16 -0800 (PST) Received: from francesco-nb.int.toradex.com (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id DB72220645; Fri, 1 Dec 2023 09:48:13 +0100 (CET) Date: Fri, 1 Dec 2023 09:48:09 +0100 From: Francesco Dolcini To: Nishanth Menon Cc: Tony Lindgren , Francesco Dolcini , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Vignesh Raghavendra , Catalin Marinas , Will Deacon , Tero Kristo Subject: Re: [PATCH] arm64: defconfig: increase SERIAL_8250_NR_UARTS Message-ID: References: <20231130231657.12715-1-francesco@dolcini.it> <20231201060346.GE5169@atomide.com> <20231201064919.5mbmqo5fco7n3rgq@endnote> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201064919.5mbmqo5fco7n3rgq@endnote> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 01 Dec 2023 00:48:29 -0800 (PST) On Fri, Dec 01, 2023 at 12:49:19AM -0600, Nishanth Menon wrote: > On 08:03-20231201, Tony Lindgren wrote: > > * Francesco Dolcini [231130 23:17]: > > > 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"). > > > > > > This enables using the UART connected Bluetooth device on Verdin AM62 > > > board. > > > > OK makes sense for distro use. > > > > Disabling unused ports leads into port names shifting, which we still can't > > easily tolerate until we have the DEVNAME:0.0 style addressing available for > > ports. So for now we still depend CONFIG_SERIAL_8250_NR_UARTS, eventually > > that too should become just a legacy ISA port array.. Meanwhile: > > > > Reviewed-by: Tony Lindgren > > I'd prefer to get Arnd's view on the topic as well (I kind of > recollect some historic discussion which I am not failing to trace > that there usage model doesn't exceed 4 and aliases could be used to > map these as required for the platform). The usage model that triggered this change exceed 4, we >4 uart in use at the same time. And the issue is not really "distro use", and I do not think anything about aliases matter (the BT device is described as a child of the uart in the DT). &main_uart5 { bluetooth { compatible = "nxp,88w8987-bt"; }; }; The change here is required to have basic hardware functionalities working for kernel development and debugging using the in-tree defconfig. > Now 8 or 5 (which seems to be the relevant need) is subjective :( Correct. Francesco