1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/6.1/target/linux/bcm27xx/patches-6.1/950-0599-Revert-hwrng-bcm2835-use-hwrng_msleep-instead-of-cpu.patch
Ycarus (Yannick Chabanois) 3743692973 Fix RPI5 support
2023-11-17 17:31:36 +01:00

26 lines
827 B
Diff

From b79ceb0a74c81774308f083c9d543b82fc9e4825 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Tue, 21 Mar 2023 16:43:22 +0000
Subject: [PATCH] Revert "hwrng: bcm2835 - use hwrng_msleep() instead of
cpu_relax()"
This reverts commit 96cb9d0554457086664d3bd10630b11193d863f1.
See: https://github.com/raspberrypi/linux/issues/5390
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
drivers/char/hw_random/bcm2835-rng.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/char/hw_random/bcm2835-rng.c
+++ b/drivers/char/hw_random/bcm2835-rng.c
@@ -71,7 +71,7 @@ static int bcm2835_rng_read(struct hwrng
while ((rng_readl(priv, RNG_STATUS) >> 24) == 0) {
if (!wait)
return 0;
- hwrng_msleep(rng, 1000);
+ cpu_relax();
}
num_words = rng_readl(priv, RNG_STATUS) >> 24;