[PATCH 2/2] mtd: rawnand: brcmnand: Allow soc-specific callbacks to work

Mark Tomlinson mark.tomlinson at alliedtelesis.co.nz
Mon Feb 26 04:37:14 CET 2024


Set soc->ctrl so that the prepare_data_bus callback is used if it has
been specified by the soc.

Signed-off-by: Mark Tomlinson <mark.tomlinson at alliedtelesis.co.nz>
Cc: Dario Binacchi <dario.binacchi at amarulasolutions.com>
Cc: Michael Trimarchi <michael at amarulasolutions.com>
---
 drivers/mtd/nand/raw/brcmnand/brcmnand.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c
index 3e5ae93dda2..193471c2fb4 100644
--- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c
+++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c
@@ -2851,6 +2851,8 @@ int brcmnand_probe(struct udevice *dev, struct brcmnand_soc *soc)
 			ctrl->irq, ret);
 		goto err;
 	}
+#else
+	ctrl->soc = soc;
 #endif /* __UBOOT__ */
 
 #ifndef __UBOOT__
-- 
2.43.2



More information about the U-Boot mailing list