]> git.baikalelectronics.ru Git - kernel.git/commit
hwrng: cavium - Use per device name to allow for multiple devices.
authorDavid Daney <david.daney@cavium.com>
Mon, 6 Feb 2017 22:28:46 +0000 (14:28 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 11 Feb 2017 09:52:30 +0000 (17:52 +0800)
commit964087a16e84b6f4493a2968f2912ea1399f8ea8
tree5a13cad4f4e4d9a2da2fff6f5698301398b96b59
parent5fff57630de0f55d92e8e0b2efb39bf04022903d
hwrng: cavium - Use per device name to allow for multiple devices.

Systems containing the Cavium HW RNG may have one device per NUMA
node.  A typical configuration is a 2-node NUMA system, which results
in 2 RNG devices.  The hwrng subsystem refuses (and rightly so) to
register more than one device with he same name, so we get failure
messages on these systems.

Make the hwrng name unique by including the underlying device name.
Also remove spaces from the name to make it possible to switch devices
via the sysfs knobs.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/cavium-rng-vf.c