On Fri, Dec 02, 2022 at 08:19:00AM +0100, Francesco Dolcini wrote: > From: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx> > > Add a fallback mechanism to handle the case in which #size-cells is set > to <0>. According to the DT binding the nand controller node should have > set it to 0 and this is not compatible with the legacy way of > specifying partitions directly as child nodes of the nand-controller node. > > This fixes a boot failure on colibri-imx7 and potentially other boards. > > Cc: stable@xxxxxxxxxxxxxxx > Fixes: 753395ea1e45 ("ARM: dts: imx7: Fix NAND controller size-cells") > Link: https://lore.kernel.org/all/Y4dgBTGNWpM6SQXI@xxxxxxxxxxxxxxxxxxxxxxxxxxxx/ > Signed-off-by: Francesco Dolcini <francesco.dolcini@xxxxxxxxxxx> > --- > drivers/mtd/parsers/ofpart_core.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>