crypto: caam: blob_gen.c: fix CAAM io mem access
PATCH v2 1/1 crypto: caam: blob_gen.c: fix CAAM io mem access
IO memory access has to be done with accessors defined in caam/regs.h as there are little-endian architectures with a big-endian CAAM unit.
Fixes 6a83830f649a ("crypto: caam - warn if blob_gen key is insecure")
Signed-off-by Nikolaus Voss <[email protected]>
Reviewed-by Ahmad Fatoum <[email protected]>
---
v2: added upstream commit ref and reviewed-by line
drivers/crypto/caam/blob_gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/caam/blob_gen.c +1 -1
@@ -104,7 +104,7 @@ int caam_process_blob(struct caam_blob_priv *priv, } ctrlpriv =dev_get_drvdata (jrdev->parent); - moo =FIELD_GET (CSTA_MOO ,ioread32 (&ctrlpriv->ctrl->perfmon.status)); + moo =FIELD_GET (CSTA_MOO ,rd_reg32 (&ctrlpriv->ctrl->perfmon.status));if (moo !=CSTA_MOO_SECURE && moo !=CSTA_MOO_TRUSTED )dev_warn (jrdev,"using insecure test key, enable HAB to use unique device key!\n" );
Signature · 1 line
2.34.1
Herbert Xu
maintainerQuoted 7 lines · Nikolaus Voss
IO memory access has to be done with accessors defined in
caam/regs.has there are little-endian architectures with a big-endian CAAM unit.Fixes 6a83830f649a ("crypto: caam - warn if blob_gen key is insecure")Signed-off-by Nikolaus Voss <[email protected]>Reviewed-by Ahmad Fatoum <[email protected]>
Quoted 5 lines
---
v2: added upstream commit ref and reviewed-by linedrivers/crypto/caam/blob_gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt