diff mbox series

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

Message ID 20240226033714.3451005-2-mark.tomlinson@alliedtelesis.co.nz
State New
Delegated to: Dario Binacchi
Headers show
Series [1/2] mtd: rawnand: brcmnand: fallback to detected ecc-strengh, ecc-step-size | expand

Commit Message

Mark Tomlinson Feb. 26, 2024, 3:37 a.m. UTC
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@alliedtelesis.co.nz>
Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
---
 drivers/mtd/nand/raw/brcmnand/brcmnand.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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__