Thread (26 messages) 26 messages, 5 authors, 2017-11-30

[PATCH v2 06/12] hwrng: bcm2835-rng: Rework interrupt masking

From: Eric Anholt <hidden>
Date: 2017-11-08 20:41:46
Also in: linux-crypto, linux-devicetree, lkml

Stefan Wahren [off-list ref] writes:
Hi Florian,
quoted
Florian Fainelli [off-list ref] hat am 8. November 2017 um 01:44 geschrieben:


The interrupt masking done for Northstart Plus and Northstar (BCM5301X)
is moved from being a function pointer mapped to of_device_id::data into
a proper part of the hwrng::init callback. While at it, we also make the
of_data be a proper structure indicating the platform specifics, since
the day we need to add a second type of platform information, we would
have to do that anyway.
in the lack of proper documentation for bcm2835 rng, is it possible
that we should mask the interrupts for bcm2835 as well?
I don't have the RTL nearby and the RNG block doesn't have the usual
#defines for power-on-reset values, so I'm not sure.  I don't see any
use of the RNG by the firmware that should impact Linux -- a driver
exists and it uses IRQs, but it shouldn't have been active, and even if
it was then its teardown process masks the interrupt off again.

However, masking it off ourselves should be harmless at worst.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171108/9fa89f7f/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help