android_kernel_motorola_sm6225/drivers/char/hw_random
Tony Lindgren 8b314bb069 hwrng: omap3-rom - Fix missing clock by probing with device tree
[ Upstream commit 0c0ef9ea6f3f0d5979dc7b094b0a184c1a94716b ]

Commit 0ed266d7ae ("clk: ti: omap3: cleanup unnecessary clock aliases")
removed old omap3 clock framework aliases but caused omap3-rom-rng to
stop working with clock not found error.

Based on discussions on the mailing list it was requested by Tero Kristo
that it would be best to fix this issue by probing omap3-rom-rng using
device tree to provide a proper clk property. The other option would be
to add back the missing clock alias, but that does not help moving things
forward with removing old legacy platform_data.

Let's also add a proper device tree binding and keep it together with
the fix.

Cc: devicetree@vger.kernel.org
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Adam Ford <aford173@gmail.com>
Cc: Pali Rohár <pali.rohar@gmail.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Sebastian Reichel <sre@kernel.org>
Cc: Tero Kristo <t-kristo@ti.com>
Fixes: 0ed266d7ae ("clk: ti: omap3: cleanup unnecessary clock aliases")
Reported-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:51:20 +01:00
..
amd-rng.c
atmel-rng.c
bcm2835-rng.c hwrng: bcm2835 - fix probe as platform device 2020-01-27 14:50:29 +01:00
cavium-rng-vf.c
cavium-rng.c
core.c hwrng: core - don't wait on add_early_randomness() 2019-10-05 13:10:12 +02:00
exynos-trng.c
geode-rng.c
hisi-rng.c
imx-rngc.c
intel-rng.c
iproc-rng200.c
ixp4xx-rng.c
Kconfig
ks-sa-rng.c
Makefile
meson-rng.c
mtk-rng.c
mxc-rnga.c
n2-asm.S
n2-drv.c
n2rng.h
nomadik-rng.c
octeon-rng.c
omap-rng.c hwrng: omap - Fix RNG wait loop timeout 2019-12-17 20:34:52 +01:00
omap3-rom-rng.c hwrng: omap3-rom - Fix missing clock by probing with device tree 2020-01-27 14:51:20 +01:00
pasemi-rng.c
pic32-rng.c
powernv-rng.c
pseries-rng.c
s390-trng.c
st-rng.c
stm32-rng.c hwrng: stm32 - fix unbalanced pm_runtime_enable 2019-12-05 09:21:34 +01:00
timeriomem-rng.c
tx4939-rng.c
via-rng.c
virtio-rng.c hwrng: virtio - Avoid repeated init of completion 2019-04-05 22:33:14 +02:00
xgene-rng.c