linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] hw_random: ixp4xx: enable compile-testing
@ 2021-05-11 13:29 Linus Walleij
  2021-05-11 13:29 ` [PATCH 2/5] hw_random: ixp4xx: Use SPDX license tag Linus Walleij
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Linus Walleij @ 2021-05-11 13:29 UTC (permalink / raw)
  To: Matt Mackall, Herbert Xu, Deepak Saxena
  Cc: linux-crypto, Arnd Bergmann, Linus Walleij

From: Arnd Bergmann <arnd@arndb.de>

The driver is almost portable already, it just needs to
include the new header for the cpu definition.

Cc: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
The idea is to apply this through the ARM SoC tree along
with other IXP4xx refactorings.
Please tell me if you prefer another solution.
---
 drivers/char/hw_random/Kconfig      | 2 +-
 drivers/char/hw_random/ixp4xx-rng.c | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
index 1fe006f3f12f..f033a11cc90d 100644
--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -152,7 +152,7 @@ config HW_RANDOM_VIA
 
 config HW_RANDOM_IXP4XX
 	tristate "Intel IXP4xx NPU HW Pseudo-Random Number Generator support"
-	depends on ARCH_IXP4XX
+	depends on ARCH_IXP4XX || COMPILE_TEST
 	default HW_RANDOM
 	help
 	  This driver provides kernel-side support for the Pseudo-Random
diff --git a/drivers/char/hw_random/ixp4xx-rng.c b/drivers/char/hw_random/ixp4xx-rng.c
index beec1627db3c..34781028caec 100644
--- a/drivers/char/hw_random/ixp4xx-rng.c
+++ b/drivers/char/hw_random/ixp4xx-rng.c
@@ -21,10 +21,9 @@
 #include <linux/init.h>
 #include <linux/bitops.h>
 #include <linux/hw_random.h>
+#include <linux/soc/ixp4xx/cpu.h>
 
 #include <asm/io.h>
-#include <mach/hardware.h>
-
 
 static int ixp4xx_rng_data_read(struct hwrng *rng, u32 *buffer)
 {
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-05-21  7:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-11 13:29 [PATCH 1/5] hw_random: ixp4xx: enable compile-testing Linus Walleij
2021-05-11 13:29 ` [PATCH 2/5] hw_random: ixp4xx: Use SPDX license tag Linus Walleij
2021-05-21  7:10   ` Herbert Xu
2021-05-11 13:29 ` [PATCH 3/5] hw_random: ixp4xx: Turn into a module Linus Walleij
2021-05-21  7:10   ` Herbert Xu
2021-05-11 13:29 ` [PATCH 4/5] hw_random: ixp4xx: Add DT bindings Linus Walleij
2021-05-17 22:44   ` Rob Herring
2021-05-11 13:29 ` [PATCH 5/5] hw_random: ixp4xx: Add OF support Linus Walleij
2021-05-21  7:11   ` Herbert Xu
2021-05-21  7:10 ` [PATCH 1/5] hw_random: ixp4xx: enable compile-testing Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).