]> git.baikalelectronics.ru Git - uboot.git/commit
mtd: uboot: Fix hanging during mtd list command
authorAdam Ford <aford173@gmail.com>
Mon, 8 Oct 2018 19:13:03 +0000 (14:13 -0500)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 10 Oct 2018 06:04:10 +0000 (11:34 +0530)
commit9f0d5b3d345b1bbf0a91c932990ebe6d31bbb0d8
tree101fb991f77d66a015f83c3a5f62be493a0e20b5
parent0bf1692323e3928662c91dc9f68b61ff042a6aeb
mtd: uboot: Fix hanging during mtd list command

Some boards (like omap3_logic) hang when trying to access
address 0. This happens when executing the new 'mtd list' command.
This patch enhances the checks for conditions that would
preclude mtd_probe_devices() from operating.

Fixes: 3a11299ea117 ("cmd: mtd: add 'mtd' command")
Suggested-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/mtd_uboot.c