crypto: ccree - correct host regs offset
authorGilad Ben-Yossef <gilad@benyossef.com>
Thu, 24 May 2018 14:19:06 +0000 (15:19 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 30 May 2018 16:13:49 +0000 (00:13 +0800)
commit281a58c8326ca62ca6341f9d2cc2eb08044670e8
tree2968655305c7f13d6c2bfe2fea87d9cc2d9ccef1
parent4262c98aab95119ec0810b5ec4be521dda1b28b2
crypto: ccree - correct host regs offset

The product signature and HW revision register have different offset on the
older HW revisions.
This fixes the problem of the driver failing sanity check on silicon
despite working on the FPGA emulation systems.

Fixes: 27b3b22dd98c ("crypto: ccree - add support for older HW revs")
Cc: stable@vger.kernel.org
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_debugfs.c
drivers/crypto/ccree/cc_driver.c
drivers/crypto/ccree/cc_driver.h
drivers/crypto/ccree/cc_host_regs.h