Skip to content

Commit 7278fa2

Browse files
iuliana-prodanherbertx
authored andcommitted
crypto: caam - do not reset pointer size from MCFGR register
In commit 'a1cf573ee95 ("crypto: caam - select DMA address size at runtime")' CAAM pointer size (caam_ptr_size) is changed from sizeof(dma_addr_t) to runtime value computed from MCFGR register. Therefore, do not reset MCFGR[PS]. Fixes: a1cf573 ("crypto: caam - select DMA address size at runtime") Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com> Cc: <stable@vger.kernel.org> Cc: Andrey Smirnov <andrew.smirnov@gmail.com> Cc: Alison Wang <alison.wang@nxp.com> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent bbefa1d commit 7278fa2

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎drivers/crypto/caam/ctrl.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -671,11 +671,9 @@ static int caam_probe(struct platform_device *pdev)
671671
of_node_put(np);
672672

673673
if (!ctrlpriv->mc_en)
674-
clrsetbits_32(&ctrl->mcr, MCFGR_AWCACHE_MASK | MCFGR_LONG_PTR,
674+
clrsetbits_32(&ctrl->mcr, MCFGR_AWCACHE_MASK,
675675
MCFGR_AWCACHE_CACH | MCFGR_AWCACHE_BUFF |
676-
MCFGR_WDENABLE | MCFGR_LARGE_BURST |
677-
(sizeof(dma_addr_t) == sizeof(u64) ?
678-
MCFGR_LONG_PTR : 0));
676+
MCFGR_WDENABLE | MCFGR_LARGE_BURST);
679677

680678
handle_imx6_err005766(&ctrl->mcr);
681679

0 commit comments

Comments
 (0)