]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3aa0840cc62e7d0f8bd5d4f49bdb6c73e280e301
tree2ff9cf49fdddb2e4de6b0a175c14d606d2c3ace9
parent7491d4695c90067c8a2b651dedbc239892fe7c65
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