[PATCH v2] fdt: Make fdt addr -q quieter

Simon Glass sjg at chromium.org
Sun Apr 2 23:33:19 CEST 2023


On Wed, 22 Mar 2023 at 04:19, Marek Vasut <marek.vasut at mailbox.org> wrote:
>
> On 3/21/23 14:01, Peter Hoyes wrote:
> > From: Peter Hoyes <Peter.Hoyes at arm.com>
> >
> > 64597346 "fdt: Add -q option to fdt addr for distro_bootcmd" introduced
> > the -q option for fdt addr, which sets the current working fdt address
> > without printing any output.
> >
> > baf41410 "fdt: Show a message when the working FDT changes" made the
> > utility function set_working_fdt_addr (in cmd/fdt.c) output a message
> > on each invocation, even if called via fdt addr -q, in which case its
> > output is now slightly noisier.
> >
> > To fix this, split out set_working_fdt_addr into set_working_fdt_addr
> > plus the static function set_working_fdt_addr_quiet.
> > set_working_fdt_addr_quiet can be called by "quiet" fdt cmd logic and
> > set_working_fdt_addr is exported (as before) to other boot logic. The
> > latter calls the former.
> >
> > Remove the assertion from the fdt addr test case when calling with the
> > -q argument.
> >
> > Signed-off-by: Peter Hoyes <Peter.Hoyes at arm.com>
>
> Reviewed-by: Marek Vasut <marek.vasut+renesas at mailbox.org>

Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list