Skip to content
Commit 5ffcd506 authored by Boris Brezillon's avatar Boris Brezillon Committed by Jagan Teki
Browse files

mtd: Use default mtdparts/mtids when not defined in the environment

U-boot provides a mean to define default values for mtdids and mtdparts
when they're not defined in the environment. Patch mtd_probe_devices()
to use those default values when env_get("mtdparts") or
env_get("mtdids") return NULL.

This implementation is based on the logic found in cmd/mtdparts.c.

Fixes: 5db66b3a

 ("cmd: mtd: add 'mtd' command")
Reported-by: default avatarStefan Roese <sr@denx.de>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Tested-by: default avatarStefan Roese <sr@denx.de>
Reviewed-by: default avatarLukasz Majewski <lukma@denx.de>
Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
parent c80cc3df
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment