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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 75104C433EF for ; Tue, 12 Jul 2022 11:58:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D378983FEA; Tue, 12 Jul 2022 13:58:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1657627106; bh=83cOjnN5lhu6c4Wy8KaswQXYIw4Tf79OkAo/pB4QAGc=; h=Subject:From:To:Cc:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=ssWr/7Ob/Ja3MyeqgPCMPyksofaevrH+YCcOICRLMi42AOvM5mZodnIky0sHlC7Rv 7LaBTiaqw4UsQd/sTjL/IvFA1zOor3A8gPArqcftkm/SLjrJk12By/PFaiD+W0R32H qdbPDbbnN+bxTm3vr5WmluoCjNxmTVytnXRH9oBVtj+OamLgAaAUaAt2RmOR2W7/kY VhuKdd7NWhqwnISKnil9s4OF6OhQTvZzr6nq9LLo9Oi2F6nFok1PhONdPA2pLWx6nS Mq1N7qxN1Pa2eiMPV/VnY+KQ/wuzjF+oL6gzj7i41kUhmlfqsRB0uEQEpUysJaOT0I bLmyp4F/b3BAQ== Received: from maia.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: hws@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id E84DE802F2; Tue, 12 Jul 2022 13:58:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1657627104; bh=83cOjnN5lhu6c4Wy8KaswQXYIw4Tf79OkAo/pB4QAGc=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=YZqFLC8DDwKYUtuBqCgEj23Mf/sj+DpuCWlYh33GKu50MuV+iYIOg8CN2L4t9y3xa SvZU57pTLEgBYffEQ7emPBrN2AA+A9ukoMwQu7TC1juo70LzLc5EB2tyAUbzoRkPkD XeQnX6HZ5coBuXESfaA6wV/7YZ7wzUWLG/Zw+zQcclp9LOT+mvMaYRRpwZaYqU5tei IvSm/8G9BdyX/f8I0TmBsWVHb0fmztLXNsIchhFQNEJd9NQNZHJwfBNGztw+DNFS5Q CK3LFNUif8+1xMR09b0LOnXgzSTBG3rjrj+I++nDq/57Jvim2ftNsnmeqQMmp1bFKj pmyaptNeTcX2g== Message-ID: <6df686f53482645029a93b61ba6c6bdf38ea87e8.camel@denx.de> Subject: Re: [PATCH] console: Add option to keep it silent until env is loaded From: Harald Seiler To: Simon Glass Cc: Tom Rini , U-Boot Mailing List , Patrick Delaunay Date: Tue, 12 Jul 2022 13:58:23 +0200 In-Reply-To: References: <20220706111910.791466-1-hws@denx.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 (3.44.3-1.fc36) MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Hi Simon, On Tue, 2022-07-12 at 04:58 -0600, Simon Glass wrote: > Hi Harald, >=20 > On Wed, 6 Jul 2022 at 05:19, Harald Seiler wrote: > >=20 > > Add a config-option which forces the console to stay silent until the > > proper environment is loaded from flash. > >=20 > > This is important when the default environment does not silence the > > console but no output must be printed when 'silent' is set in the flash > > environment. > >=20 > > After the environment from flash is loaded, the console will be > > silenced/unsilenced depending on it. If PRE_CONSOLE_BUFFER is also > > used, the buffer will now be flushed if the console should not be > > silenced. > >=20 > > Signed-off-by: Harald Seiler > > --- > > common/Kconfig | 10 ++++++++++ > > common/console.c | 5 +++++ > > 2 files changed, 15 insertions(+) >=20 > This seems OK to me. You might want to implement the silent-console > device tree property in console_update_silent() too, which was dropped > in the conversion to driver model. This looks interesting, I'll have to look into it. Do you know if there's any effort towards supporting such a flag in the kernel as well? I had to remove the serial console property from my DT and instead pass console info via cmdline to make the silent console work. A "pure DT" solution of any sort would have been nicer of course... --=20 Harald