]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: Update the way partitions are parsed
authorPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 21 Mar 2022 08:13:37 +0000 (09:13 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 11 Apr 2022 15:39:19 +0000 (11:39 -0400)
commit7ab3364c6d1c17b8ee6da523d5729b0248ba63bf
tree379d3b041b956519d85b1fd81bd81eff666e35be
parentc86a4de8df611b58ec41ae6c42c6fec58e5ab54f
mtd: Update the way partitions are parsed

In case mtd_info's dev field is not populated (raw nand's case),
use the flash_node new field which reference the DT flash node where
can be found "partitions" node with "fixed-partitions" compatible.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Farhan Ali <farhan.ali@broadcom.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Marek Behun <marek.behun@nic.cz>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Wolfgang Denk <wd@denx.de>
drivers/mtd/mtdpart.c