Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp29004lfe; Fri, 15 Apr 2022 17:55:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+rJwAT5t49tFOXaiGkHMj5dscP35iffy6gVGhRNiOapORgjUqdN3NLM8ilanzLtLzV5pR X-Received: by 2002:a05:6a00:cc4:b0:505:6998:69b8 with SMTP id b4-20020a056a000cc400b00505699869b8mr1389188pfv.19.1650070506264; Fri, 15 Apr 2022 17:55:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650070506; cv=none; d=google.com; s=arc-20160816; b=p9sZtG/bxboOH46erH5QpPBhdwz12wQ82X+ClFCoElIbbrlkCWrsTe2u9YdUbPyrqe NlkgRKD1y2DyBQz5oxzWGxJOtgDimFAeDNonzAnNi0t5iHzO0Okp2QIKNhkpfcfOdbM6 NYAEHUAoalaflTtyT/7ITda44EDv9K9giQP346eoZB22oySXySW+E0VhaD5tzEjXfElE fR7ySL62pvVgsSOofT/nmZvbUlu+dxfYDLrsNVsoUlEqVvdXEDmkwuLgWfAgGJhidbZs m4Fg8Ket0EBLYfET2KWTnyBGpPXTssOho+lFf55lG6MpXJpuEB3b9TkoZX/5321GUBc6 nbvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=9lS9iIV+KOyeznWXLU/+PFYSNVvJsgPO8cF8Hhb/0RQ=; b=NQxYvZLv3wLiSjEeIcnE66w8nMlunNsPcSg4Xq09Q3eoSDB1ETp8UhrrO0DPMJUTgt m7wqRORJ+UmrZNGn7+/a2cMhW5ClEMPLJ5H0R8LLCQZUOYq2ZKbGzcu4bjpVcABWJL3j sjJg7BUam0S+IdpStFiCiAu46iR/6DyPdkQJvNnptheCptZRcH60ea21bLy+MecYEI50 Ab/wQs8BWXmJnCXojFi35m8x7SNlfTTE7H9joHnRLIfVhbcQ36otSglZO2zqrUW02L8M kHMTFANbFXS2GEHtNXOTSSPZNuRxgIVXx9PfWYxodGmLbq6bhMiITirqwr5r0SMXWjgG CX2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=RpocIrDB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q11-20020a638c4b000000b0039d13c0c537si2634761pgn.714.2022.04.15.17.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:55:06 -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; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=RpocIrDB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A032310EC57; Fri, 15 Apr 2022 17:41:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243056AbiDNMUC (ORCPT + 99 others); Thu, 14 Apr 2022 08:20:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231996AbiDNMUB (ORCPT ); Thu, 14 Apr 2022 08:20:01 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCAFC5BE65; Thu, 14 Apr 2022 05:17:35 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23E7Qc7l001962; Thu, 14 Apr 2022 14:17:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=9lS9iIV+KOyeznWXLU/+PFYSNVvJsgPO8cF8Hhb/0RQ=; b=RpocIrDBEpyX48SquStLyCMt2/rW2Z8Ys0WHvNW8LgCmUDlupMB6LSCZeWDgwhzmzTyf //NATfuswH45y2PrpCe3hSdFAJMnKRccc7FJBoSBH/uqFbIJOt1Z/ib/b68arpfI0ofn sCEKOx4BvBG+rdXeJpjsEcRSq8NNHPTUJoPif98nTE3EdIlqFJmgr2khBocSZwh6gRl1 iSDyq12bbpxEefYS9t1Y05h9Gd/K/jt2E4InkUlUcE8sPiwnNm2HFB61zwBH+SMaMzje 9T9imW+qB6nEvI4J7pmMy7wA6rkvAWnojAnzbVknfWxq9WFfM56oKQK75k6u/qJDD3gU EQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3fb74ymh5b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Apr 2022 14:17:08 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 030E910002A; Thu, 14 Apr 2022 14:17:06 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EEF84220FB6; Thu, 14 Apr 2022 14:17:05 +0200 (CEST) Received: from [10.201.20.168] (10.75.127.45) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Thu, 14 Apr 2022 14:17:05 +0200 Message-ID: Date: Thu, 14 Apr 2022 14:17:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH V2 3/3] serial: stm32: add earlycon support Content-Language: en-US To: Geert Uytterhoeven CC: Greg Kroah-Hartman , Jonathan Corbet , Jiri Slaby , Maxime Coquelin , Alexandre Torgue , Erwan Le Ray , "open list:SERIAL DRIVERS" , , Linux ARM , Linux Kernel Mailing List , "open list:DOCUMENTATION" References: <20220408122636.505737-1-valentin.caron@foss.st.com> <20220408122636.505737-4-valentin.caron@foss.st.com> From: Valentin CARON In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-14_04,2022-04-14_01,2022-02-23_01 X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/11/22 16:59, Geert Uytterhoeven wrote: > Hi Valentin, > > 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? > > +OF_EARLYCON_DECLARE(stm32, "st,stm32h7-uart", early_stm32_h7_serial_setup); > +OF_EARLYCON_DECLARE(stm32, "st,stm32f7-uart", early_stm32_f7_serial_setup); > +OF_EARLYCON_DECLARE(stm32, "st,stm32-uart", early_stm32_f4_serial_setup); > > 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 Hi Geert, 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 ? Thanks, Valentin