hwrng: iproc-rng200 - Fix disable of the block.
authorMatthias Brugger <mbrugger@suse.com>
Fri, 18 Dec 2020 10:57:07 +0000 (11:57 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 2 Jan 2021 21:41:37 +0000 (08:41 +1100)
commit96a6af540396ed93ba231d0ae2e6fe196dc22032
tree3e924d7e648e1830f32ac7fb516d4a347d446dfa
parent5318d3db465d29efe97b0e18da29ad95156e6142
hwrng: iproc-rng200 - Fix disable of the block.

When trying to disable the block we bitwise or the control
register with value zero. This is confusing as using bitwise or with
value zero doesn't have any effect at all. Drop this as we already set
the enable bit to zero by appling inverted RNG_RBGEN_MASK.

Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Acked-by: Scott Branden <scott.branden@broadcom.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/iproc-rng200.c