crypto: caam - fix CAAM io mem access in blob_gen
authorNikolaus Voss <nikolaus.voss@haag-streit.com>
Tue, 20 Dec 2022 08:17:50 +0000 (09:17 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Dec 2022 09:57:42 +0000 (17:57 +0800)
commita23529989a8f56d23680c4f2d14011bc9c9457c9
tree4c88532ab53572e1e47d23ee437163a7ba62520e
parent1b929c02afd37871d5afb9d498426f83432e71c2
crypto: caam - fix CAAM io mem access in blob_gen

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 <nikolaus.voss@haag-streit.com>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/blob_gen.c