[PATCH v1] mtd: parsers: ofpart: Fix parsing when size-cells is 0
Greg KH
gregkh at linuxfoundation.org
Fri Dec 2 04:43:26 PST 2022
On Fri, Dec 02, 2022 at 08:19:00AM +0100, Francesco Dolcini wrote:
> From: Francesco Dolcini <francesco.dolcini at toradex.com>
>
> 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 at vger.kernel.org
> Fixes: 753395ea1e45 ("ARM: dts: imx7: Fix NAND controller size-cells")
> Link: https://lore.kernel.org/all/Y4dgBTGNWpM6SQXI@francesco-nb.int.toradex.com/
> Signed-off-by: Francesco Dolcini <francesco.dolcini at toradex.com>
> ---
> drivers/mtd/parsers/ofpart_core.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
Reviewed-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
More information about the linux-mtd
mailing list