From mboxrd@z Thu Jan 1 00:00:00 1970 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 6F93FC4332F for ; Tue, 22 Nov 2022 07:51:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232585AbiKVHvP (ORCPT ); Tue, 22 Nov 2022 02:51:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232373AbiKVHvO (ORCPT ); Tue, 22 Nov 2022 02:51:14 -0500 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 124B332B8C; Mon, 21 Nov 2022 23:51:14 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id AEEB78061; Tue, 22 Nov 2022 07:40:59 +0000 (UTC) Date: Tue, 22 Nov 2022 09:51:12 +0200 From: Tony Lindgren To: Andrew Davis Cc: Nishanth Menon , Apurva Nandan , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Linus Walleij , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Hari Nagalla Subject: Re: [PATCH v3 4/4] arm64: dts: ti: Add support for J784S4 EVM board Message-ID: References: <20221116130428.161329-1-a-nandan@ti.com> <20221116130428.161329-5-a-nandan@ti.com> <20221118174754.y37pq77drvla2uxj@tinderbox> <8c123fa2-caab-d2dd-5eb4-688f1c6abb33@ti.com> <20221118180808.wnel7d6gswsnooww@junkman> <93242211-95e7-09a0-fced-5ef2deb9fc08@ti.com> <20221118192744.wish2vrxgy7dg7c2@unnerving> <3d5e41f6-16a8-4298-ccd3-6db60f94eb47@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3d5e41f6-16a8-4298-ccd3-6db60f94eb47@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org * Andrew Davis [221118 21:05]: > Why do we need SERIAL_8250_NR_UARTS at all, might be a better question. > These should be dynamically allocated if the number goes over the > default count imposed by the TTY framework. Maybe folks are still a > bit too afraid to touch the TTY subsystem core, I don't blame them.. The 8250 core preallocates a number of ports for use, see serial8250_isa_init_ports() and serial8250_register_8250_port(). As the serial port driver probes, the preallocated ports get re-assigned to the port driver. Maybe we could keep the static serial8250_ports[] and add those ports to a list where also the dynamically allocated ports would go.. Regards, Tony