[PATCH] mtd: spinand: Fix display of unknown raw ID

Michael Nazzareno Trimarchi michael at amarulasolutions.com
Tue Feb 14 11:52:34 CET 2023


Hi

On Tue, Feb 14, 2023 at 9:14 AM Frieder Schrempf
<frieder.schrempf at kontron.de> wrote:
>
> On 13.02.23 18:30, Patrice Chotard wrote:
> > In case ID is not found in manufacturer table, the raw ID is
> > printed using %*phN format which is not supported by lib/vsprintf.c.
> > The information displayed doesn't reflect the raw ID return by the
> > unknown spi-nand.
> >
> > Use %02x format instead, as done in spi-nor-core.c.
> >
> > For example, before this patch:
> >   ERROR: spi-nand: spi_nand flash at 0: unknown raw ID f74ec040
> > after
> >   ERROR: spi-nand: spi_nand flash at 0: unknown raw ID 00 c2 26 03
> >
> > Fixes: 0a6d6bae0386 ("mtd: nand: Add core infrastructure to support SPI NANDs")
> >
> > Signed-off-by: Patrice Chotard <patrice.chotard at foss.st.com>
>
> Reviewed-by: Frieder Schrempf <frieder.schrempf at kontron.de>

Acked-by: Michael Trimarchi <michael at amarulasolutions.com>

-- 
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
michael at amarulasolutions.com
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
info at amarulasolutions.com
www.amarulasolutions.com


More information about the U-Boot mailing list