]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/crypto/caam/ctrl.c
crypto: caam - fix pointer size for AArch64 boot loader, AArch32 kernel
[mirror_ubuntu-artful-kernel.git] / drivers / crypto / caam / ctrl.c
index 0ec112ee5204302ef01bdc7f5dc30d5184e747b4..e483b78c6343fd745f83e52b317edbb3ccb23e92 100644 (file)
@@ -14,6 +14,7 @@
 #include "jr.h"
 #include "desc_constr.h"
 #include "error.h"
+#include "ctrl.h"
 
 bool caam_little_end;
 EXPORT_SYMBOL(caam_little_end);
@@ -557,8 +558,9 @@ static int caam_probe(struct platform_device *pdev)
         * Enable DECO watchdogs and, if this is a PHYS_ADDR_T_64BIT kernel,
         * long pointers in master configuration register
         */
-       clrsetbits_32(&ctrl->mcr, MCFGR_AWCACHE_MASK, MCFGR_AWCACHE_CACH |
-                     MCFGR_AWCACHE_BUFF | MCFGR_WDENABLE | MCFGR_LARGE_BURST |
+       clrsetbits_32(&ctrl->mcr, MCFGR_AWCACHE_MASK | MCFGR_LONG_PTR,
+                     MCFGR_AWCACHE_CACH | MCFGR_AWCACHE_BUFF |
+                     MCFGR_WDENABLE | MCFGR_LARGE_BURST |
                      (sizeof(dma_addr_t) == sizeof(u64) ? MCFGR_LONG_PTR : 0));
 
        /*
@@ -826,6 +828,8 @@ static int caam_probe(struct platform_device *pdev)
 
 caam_remove:
        caam_remove(pdev);
+       return ret;
+
 iounmap_ctrl:
        iounmap(ctrl);
 disable_caam_emi_slow: