[U-Boot] [PATCH] mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name()

Boris Brezillon boris.brezillon at bootlin.com
Sun Nov 18 19:29:05 UTC 2018


On Sat, 17 Nov 2018 11:59:52 +0100
Miquel Raynal <miquel.raynal at bootlin.com> wrote:

> Hi Boris,
> 
> Boris Brezillon <boris.brezillon at bootlin.com> wrote on Fri, 16 Nov 2018
> 23:15:42 +0100:
> 
> > The environment is not guaranteed to contain a valid mtdids variable
> > when called from mtd_search_alternate_name(). Call get_mtdids() instead
> > of env_get("mtdids").

Forgot to move board_mtdparts_default(). Please don't apply this patch,
I'll send a v2.

> > 
> > Fixes: ff4afa8a981e ("mtd: uboot: search for an equivalent MTD name with the mtdids")
> > Signed-off-by: Boris Brezillon <boris.brezillon at bootlin.com>
> > ---  
> 
> Reviewed-by: Miquel Raynal <miquel.raynal at bootlin.com>
> 
> Thanks,
> Miquèl



More information about the U-Boot mailing list