crypto: hisilicon - allow compile-testing on x86
authorArnd Bergmann <arnd@arndb.de>
Thu, 19 Sep 2019 14:09:06 +0000 (16:09 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 4 Oct 2019 15:06:19 +0000 (01:06 +1000)
commita7174f978563e112fcd8601c9f8b4a9ddef3388d
tree2ff9cf49fdddb2e4de6b0a175c14d606d2c3ace9
parent5fd39c4d96c9bcbda46960772a01d90f5f72037f
crypto: hisilicon - allow compile-testing on x86

To avoid missing arm64 specific warnings that get introduced
in this driver, allow compile-testing on all 64-bit architectures.

The only actual arm64 specific code in this driver is an open-
coded 128 bit MMIO write. On non-arm64 the same can be done
using memcpy_toio. What I also noticed is that the mmio store
(either one) is not endian-safe, this will only work on little-
endian configurations, so I also add a Kconfig dependency on
that, regardless of the architecture.
Finally, a depenndecy on CONFIG_64BIT is needed because of the
writeq().

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/Kconfig
drivers/crypto/hisilicon/qm.c