Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp56298lfe; Fri, 15 Apr 2022 19:16:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBXeCOIVeRVVMFcp5nZvdDTIdrIDJJwmXNU4n9ZP1Ae/wplSZ6LInkbWS6InSMwgxh5QAt X-Received: by 2002:a17:90a:b28c:b0:1ca:a055:12ac with SMTP id c12-20020a17090ab28c00b001caa05512acmr7040182pjr.215.1650075395236; Fri, 15 Apr 2022 19:16:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650075395; cv=none; d=google.com; s=arc-20160816; b=TPFXvtJGYQP36P56jzV7MeZKzJj6d9oprzr68e8+avt0mcns9DsPbK49IhLpcmbpGX BRaa7bHZ2DekL5z0UQ7WZTLeUXdJ9vf7EKCbECSL6tDGObPgZbPVBFPij9CMJZitjbTP L80sp4Rl6K7N/fr3f3jWt76eyaF2YlIYacGtU5sjEHtBS21a7UQ8orf0ct6p1QnIeD1Z GYATUufp0bIEY4x7WyNkYiOXwSOmh8LoThmVHBi5fdGbUc3vvgUCm/gsBrLeiGl22JEE M/C0xkOLWLDLTZSkqRlRY8W4rkt2Gj4t09bwsJFLWPYEPeEQdxkDSLjlwMJ2D0OXbPoS Djog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=2gM58XwROhm0N00VwVwbh3pdnwwjzwvbBSho9O6c+es=; b=Z3TiwqxbF0a9ix4eWnC2/G8Ed6pV2HWzA52EsN5OGFgEieBOtsPpIAs2Jo/pMe4OZ7 Io37hGHdz1ViKVGCqY85nhGLqX60k+F1h0gZJH1JaR+3/WNx9lKihcpWAZih+8Kmg+pA GZwtMTZ5OUeNvBpGgnfVAIaxJDzUjNjV2OWN/uvgCtl4wASCsaMh2V8K+OS6jLvVPV5n kphsrHVmpevDCbDYQlMpGRCkX3fBuo2qCAyJeqKYQ4hh2a/qK8JHb/RPapywgPLLBdRY 2r/rXT8ecNFnt0pVZa1mme6Mug/F/2EVTePkLn+cJptTMHFLwyDhemEXbupi5D4wWWx1 0FwA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i15-20020a63a84f000000b003816043f0a7si2824118pgp.668.2022.04.15.19.16.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:16:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 30D38223BE6; Fri, 15 Apr 2022 18:33:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243185AbiDNM1I (ORCPT + 99 others); Thu, 14 Apr 2022 08:27:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243172AbiDNM1E (ORCPT ); Thu, 14 Apr 2022 08:27:04 -0400 Received: from mail-qt1-f182.google.com (mail-qt1-f182.google.com [209.85.160.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FC3A2982A; Thu, 14 Apr 2022 05:24:39 -0700 (PDT) Received: by mail-qt1-f182.google.com with SMTP id t2so3367637qtw.9; Thu, 14 Apr 2022 05:24:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2gM58XwROhm0N00VwVwbh3pdnwwjzwvbBSho9O6c+es=; b=7WCmfFuA750B4xPaPS6DTWtwympSalaiD/+09mOiyo2GEJwTcgACuB+dCK3XdasEVf SpsTuSuQzC8fzFhQYhOoTgaHfdHMTzcYG1zW2sf8UahUuDLnlpX4+2mjcHPNd43eqJNW /c9Ci4wnnB+da1eBhqf/FL3/B0QOd+3QsZTf3SqGWsPXfb/gayVZioVF3Oggf2tVdLRz ML/6C2nvwC+XBn3oZH7a7mKXOJ/NMKARgYpGFLOfgzvXgC+teym1edFRrDlTQyg9gLTJ 2qV5tOeDiBsVeP8K+Flef+ub/HsB02iAvB6pGZSoohu9xtSraa4xo2a7NIbNY2koG+Dy 0odQ== X-Gm-Message-State: AOAM532AkFS3gldgN/rj6uwWV/rj2nh2SIYj0it8IfQHRToSh8ayASmy apXr7OgpgQSRvPaiarNu6YZ9gQU364fIVw== X-Received: by 2002:a05:622a:256:b0:2e1:a01b:a538 with SMTP id c22-20020a05622a025600b002e1a01ba538mr1510546qtx.167.1649939078036; Thu, 14 Apr 2022 05:24:38 -0700 (PDT) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com. [209.85.219.177]) by smtp.gmail.com with ESMTPSA id g17-20020a05620a279100b0069c29caf433sm937511qkp.73.2022.04.14.05.24.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Apr 2022 05:24:37 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id t67so9106053ybi.2; Thu, 14 Apr 2022 05:24:37 -0700 (PDT) X-Received: by 2002:a5b:984:0:b0:63f:8c38:676c with SMTP id c4-20020a5b0984000000b0063f8c38676cmr1552530ybq.393.1649939077194; Thu, 14 Apr 2022 05:24:37 -0700 (PDT) MIME-Version: 1.0 References: <20220408122636.505737-1-valentin.caron@foss.st.com> <20220408122636.505737-4-valentin.caron@foss.st.com> In-Reply-To: From: Geert Uytterhoeven Date: Thu, 14 Apr 2022 14:24:26 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V2 3/3] serial: stm32: add earlycon support To: Valentin CARON Cc: Greg Kroah-Hartman , Jonathan Corbet , Jiri Slaby , Maxime Coquelin , Alexandre Torgue , Erwan Le Ray , "open list:SERIAL DRIVERS" , linux-stm32@st-md-mailman.stormreply.com, Linux ARM , Linux Kernel Mailing List , "open list:DOCUMENTATION" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Valentin, On Thu, Apr 14, 2022 at 2:17 PM Valentin CARON wrote: > On 4/11/22 16:59, Geert Uytterhoeven wrote: > > On Fri, Apr 8, 2022 at 3:14 PM Valentin Caron > > wrote: > >> Add early console support in stm32 uart driver. > >> > >> Signed-off-by: Alexandre Torgue > >> Signed-off-by: Valentin Caron > > Thanks for your patch! > > > >> --- a/Documentation/admin-guide/kernel-parameters.txt > >> +++ b/Documentation/admin-guide/kernel-parameters.txt > >> @@ -1264,6 +1264,12 @@ > >> address must be provided, and the serial port must > >> already be setup and configured. > >> > >> + stm32, > >> + Use early console provided by ST Microelectronics > >> + serial driver for STM32 SoCs. A valid base address > >> + must be provided, and the serial port must already > >> + be setup and configured. > > Why do you need this parameter? > > > > Given this driver uses DT, can't it figure out the serial port address > > from chosen/stdout-path? > > I took the example of other serial drivers. > Both methods work (with earlycon/stdout-path and with > earlycon=stm32,0xXXXXXXX) > but your right, the second will probably never used on this driver. > > Should I remove it ? I think you should. The less platform-specific kernel parameters, the better. And the less bad examples to copy from. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds