[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250108135234.3107502-2-niravkumar.l.rabara@intel.com>
Date: Wed, 8 Jan 2025 21:52:32 +0800
From: niravkumar.l.rabara@...el.com
To: Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>,
Niravkumar L Rabara <niravkumar.l.rabara@...el.com>,
linux@...blig.org,
Shen Lichuan <shenlichuan@...o.com>,
Jinjie Ruan <ruanjinjie@...wei.com>,
u.kleine-koenig@...libre.com,
linux-mtd@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/3] mtd: rawnand: cadence: support deferred prob when DMA is not ready
From: Niravkumar L Rabara <niravkumar.l.rabara@...el.com>
Use deferred driver probe in case the DMA driver is not probed.
When ARM SMMU is enabled, all peripheral device drivers, including NAND,
are probed earlier than the DMA driver.
Signed-off-by: Niravkumar L Rabara <niravkumar.l.rabara@...el.com>
---
drivers/mtd/nand/raw/cadence-nand-controller.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/cadence-nand-controller.c b/drivers/mtd/nand/raw/cadence-nand-controller.c
index 8d1d710e439d..5e27f5546f1b 100644
--- a/drivers/mtd/nand/raw/cadence-nand-controller.c
+++ b/drivers/mtd/nand/raw/cadence-nand-controller.c
@@ -2908,7 +2908,7 @@ static int cadence_nand_init(struct cdns_nand_ctrl *cdns_ctrl)
if (!cdns_ctrl->dmac) {
dev_err(cdns_ctrl->dev,
"Unable to get a DMA channel\n");
- ret = -EBUSY;
+ ret = -EPROBE_DEFER;
goto disable_irq;
}
}
--
2.25.1
Powered by blists - more mailing lists