From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Brezillon Date: Sun, 18 Nov 2018 20:29:05 +0100 Subject: [U-Boot] [PATCH] mtd: Use get_mtdids() instead of env_get("mtdids") in mtd_search_alternate_name() In-Reply-To: <20181117115952.723fa682@xps13> References: <20181116221542.27922-1-boris.brezillon@bootlin.com> <20181117115952.723fa682@xps13> Message-ID: <20181118202905.779cb2b9@bbrezillon> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On Sat, 17 Nov 2018 11:59:52 +0100 Miquel Raynal wrote: > Hi Boris, >=20 > Boris Brezillon wrote on Fri, 16 Nov 2018 > 23:15:42 +0100: >=20 > > 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. > >=20 > > Fixes: ff4afa8a981e ("mtd: uboot: search for an equivalent MTD name wit= h the mtdids") > > Signed-off-by: Boris Brezillon > > --- =20 >=20 > Reviewed-by: Miquel Raynal >=20 > Thanks, > Miqu=C3=A8l