Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1798757rwb; Fri, 28 Jul 2023 15:28:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlF1mz0eDDodSr5gnONcQ73o6/WcLEV7M47wU7YNvELEkutdU6nLgvk3B7VtwAikzTd4IiLW X-Received: by 2002:a17:902:6903:b0:1b8:c1f:fd2c with SMTP id j3-20020a170902690300b001b80c1ffd2cmr2067787plk.33.1690583301845; Fri, 28 Jul 2023 15:28:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690583301; cv=none; d=google.com; s=arc-20160816; b=GRj03P7CI7oQ3LCdy3zPtb0iWyNCnrMze0qruJpB5JKcuTjdObAdOU6X34MmY+bO3G daky3v3MHKTXxWHYqcbXkGSNDJKwgmPIjVLll3ok0ZrIm0LXuMBx3rUHDYQB40OGPRjM CL515wSEVThOPD8BB9kShO0L87sjzdAE/fXaS1TnkkIgCLK20L9BcnUo+YKbau/49jLb kzrEGQZJb8eB03na7FNZoOJau5WWfCxheAo6ct26DAlHIt8lUY8Dec9iEqHO4bVCksWO gosdu7B8/JOzMXttv0MjfmAiB4cKs3LAhCp7yRbhnoI2+Zbs+ScMKJ9bTE87J+/KNxSg dbdg== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=CTZvr6kbJZZJNWeOuGU8OM+ODCqXZiENj6RotX6chEw=; fh=uuCsICCChdBnuarua65I5ZWxMV4ZbrWnW8aeMBz0Y5Y=; b=Otjt21haWGZPv979BtUaQ+yrt5Wj5hXzpT2uthHVN+fQ+TCvPAhAba8wi72ILGIa5f gVSz2rmMtMINOKdHsQse5BVB4pafEmBjXjHICEJiH4RDQ0PYDfGt1vZYMOx/6Dt6UIzW L85petwIUSulNLSx7+pPUpyru3EDXzecSZHXF0GiR1Pv7jpp2Rq5XLc0xOhfZE2sZ0xf kcLk4uDkiK+wtCGUQpesLVTO/HS+6v1E2LE2SJyF7qhdyn3SA4dl02xHDKeXedTh+wlM /1435EBvJHQD1M6Jk3XEW5Dhs1kUmO63fzS28m17BHSKbOa/ZgK1zyq3E4E4IN80ONBk 95Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=zNnEFCGM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a17090341d200b001bba4470991si3810812ple.498.2023.07.28.15.28.07; Fri, 28 Jul 2023 15:28:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=zNnEFCGM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229799AbjG1USw (ORCPT + 99 others); Fri, 28 Jul 2023 16:18:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233757AbjG1USc (ORCPT ); Fri, 28 Jul 2023 16:18:32 -0400 X-Greylist: delayed 470 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 28 Jul 2023 13:18:29 PDT Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A63D62D75; Fri, 28 Jul 2023 13:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1690575037; bh=MtbowmUPW/KlSYKyYheL1Gy0Tj8pJ1m2CPlyeud3blo=; h=Date:From:To:Cc:Subject:X-My-GPG-KeyId:References:From; b=zNnEFCGMd3SOjwEr7PhPC7Tt4w7JouLZ2HN6SpPUF/ybtpnB0eDOmENYpp5rP4+v3 ODvwC8l9COkf8V64+My6OFSZMNvmLdbuY1MN8XRYTJ1CU8lLvJKKW1DBNUb2bJuvMJ k9q2ZQkgbOdCofEW6kT5l5iTfounQlvnyxIfSiF4= Date: Fri, 28 Jul 2023 22:10:36 +0200 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Heiko Stuebner Cc: Peter Geis , Javier Martinez Canillas , linux-kernel@vger.kernel.org, Peter Robinson , Caleb Connolly , Jarrah Gosbell , Krzysztof Kozlowski , Martijn Braam , Rob Herring , Tom Fitzhenry , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH] arm64: dts: rockchip: Change serial baud rate for Pinephone Pro to 1.5 MB Message-ID: Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Heiko Stuebner , Peter Geis , Javier Martinez Canillas , linux-kernel@vger.kernel.org, Peter Robinson , Caleb Connolly , Jarrah Gosbell , Krzysztof Kozlowski , Martijn Braam , Rob Herring , Tom Fitzhenry , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED References: <20230403175937.2842085-1-javierm@redhat.com> <3797122.KgjxqYA5nG@diego> <87pm4kuanl.fsf@minerva.mail-host-address-is-not-set> <4495367.TLkxdtWsSY@phil> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4495367.TLkxdtWsSY@phil> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heiko and Javier, On Fri, Jul 28, 2023 at 08:59:50PM +0200, Heiko Stuebner wrote: > > Hi Javier, > > > Probably won't replace the DTB shipped with the firmware either? If one is > > replacing the firmware provided DTB witch the one in the mainline kernel, > > probably such person is also using mainline u-boot? > > Not necessarily. > > I.e. putting an extlinux.conf on an sd-card with a kernel-image and dtb > is not rocket science ;-) > > > For someone like me who is only using mainline u-boot, linux, etc then > > having a consistent uart baud rate across all components is really useful. > > > > Otherwise I either have serial console for u-boot or the kernel, but can't > > have both working so is annoying. > > > > It would be good to have a definite answer on this. Since every time that > > I try to hack on my PPP, I end changing my DTS and remember this patch :) > > So far people only reported "breaks my setup". I'm in a pickle here ;-) . > Without anybody saying "I want to also move into this direction" I really > feel I should not merge a patch that breaks other peoples setups. Even if this is not changed in kernel, bootloader should fix this situation by patching the kernel DTB before booting the kernel. U-Boot already patches the DTB in several ways, so I guess it's possible to just change stdout-path either in generic code, or in per-board ft_board_setup() for Pinephone Pro to something that matches whatever the user configured via Kconfig: https://elixir.bootlin.com/u-boot/latest/source/configs/pinephone-pro-rk3399_defconfig#L79 I mean that if U-Boot allows the user to configure arbitrary baudrate via KConfig, then it *should* also update the kernel DTB to match, especially if the choice is different from DTB that it actually embeds: https://elixir.bootlin.com/u-boot/latest/source/arch/arm/dts/rk3399-pinephone-pro.dts#L29 No static baudrate choice in DT will save anyone anyway, with the provided flexibility of configuration. Maybe this would be a nice location to fix this: https://elixir.bootlin.com/u-boot/v2023.07.02/source/common/fdt_support.c#L131 kind regards, o. > > Heiko > >