Thread (31 messages) 31 messages, 6 authors, 2017-11-07

[PATCH 12/12] hwrng: bcm63xx-rng: Remove since bcm2835-rng takes over

From: f.fainelli@gmail.com (Florian Fainelli)
Date: 2017-11-03 21:58:40
Also in: linux-crypto, linux-devicetree, lkml

On 11/03/2017 01:18 PM, Eric Anholt wrote:
Florian Fainelli [off-list ref] writes:
quoted
bcm2835-rng is now capable of supporting the BCM63xx hardware, so remove
the driver which duplicates the same functionality.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/char/hw_random/Kconfig       |  13 ---
 drivers/char/hw_random/Makefile      |   1 -
 drivers/char/hw_random/bcm63xx-rng.c | 154 -----------------------------------
 3 files changed, 168 deletions(-)
 delete mode 100644 drivers/char/hw_random/bcm63xx-rng.c
quoted
diff --git a/drivers/char/hw_random/bcm63xx-rng.c b/drivers/char/hw_random/bcm63xx-rng.c
deleted file mode 100644
index 5132c9cde50d..000000000000
--- a/drivers/char/hw_random/bcm63xx-rng.c
+++ /dev/null
quoted
-static int bcm63xx_rng_data_present(struct hwrng *rng, int wait)
-{
-	struct bcm63xx_rng_priv *priv = to_rng_priv(rng);
-
-	return __raw_readl(priv->regs + RNG_STAT) & RNG_AVAIL_MASK;
-}
It looks like this method isn't in the 2835 implementation.  Should it
get ported over?
The read method already has something similar in that it busy loops
until it gets some random words available, which is why I did not port
it over.
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help