[PATCH 3/6] crypto: caam - pbl-init: use DMA_ADDRESS_BROKEN instead of NULL

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Oct 14 05:58:40 PDT 2024


While functionally the same, DMA_ADDRESS_BROKEN marks that the code is
in need of improvement, so it should be used for documentation purposes.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/crypto/caam/pbl-init.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/crypto/caam/pbl-init.c b/drivers/crypto/caam/pbl-init.c
index 08fad4525a21..832793031cf8 100644
--- a/drivers/crypto/caam/pbl-init.c
+++ b/drivers/crypto/caam/pbl-init.c
@@ -457,7 +457,8 @@ int early_caam_init(struct caam_ctrl __iomem *_caam, bool is_imx)
 	if (IN_PBL)
 		g_jrdata = &pbl_jrdata;
 	else
-		g_jrdata = dma_alloc_coherent(sizeof(*g_jrdata), NULL);
+		g_jrdata = dma_alloc_coherent(sizeof(*g_jrdata),
+					      DMA_ADDRESS_BROKEN);
 
 	jr = IOMEM(caam) + 0x1000;
 	r4tst = &caam->r4tst[0];
-- 
2.39.5




More information about the barebox mailing list