android_kernel_motorola_sm6225/drivers/soc
Reinazhard 60c49720df
soc/qcom: early_random: Fix race during early random pool initialization
Recent random.c upstream introduced early random pool init race.
As Jason A. Donenfeld suggests, change the call to
add_hwgenerator_randomness to be add_bootloader_randomness,
and remove the last argument with the left shift operator usage.

This fixes the splash boot issue after latest RNG upstream and adapts
Qualcomm's early random driver to it.

Test: Device boots, RNG probes successfully alongside early_random driver.

Change-Id: Id75c66bf6d65bf077570a68145d4a4d200747865
Suggested-by: Jason A. Donenfeld <Jason@zx2c4.com>
Co-authored-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Reinazhard <reinazhard@gmail.com>
[ Tashar02: Reword the commit message & description ]
Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
(cherry picked from commit bd8265f32a21efc95d9b2d7473ca30e17352b0eb)
Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-11-24 03:18:11 +02:00
..
actions
amlogic
atmel
bcm soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probe 2022-07-02 16:27:37 +02:00
dove
fsl soc: fsl: qe: Check of ioremap return value 2022-03-08 19:04:09 +01:00
gemini
imx
lantiq
mediatek Revert "ASoC: mediatek: Check for error clk pointer" 2022-02-08 18:23:15 +01:00
qcom soc/qcom: early_random: Fix race during early random pool initialization 2022-11-24 03:18:11 +02:00
renesas
rockchip soc: rockchip: Fix refcount leak in rockchip_grf_init 2022-06-14 16:59:32 +02:00
samsung
sunxi
tegra This is the 4.19.222 stable release 2021-12-22 10:11:17 +01:00
ti soc: ti: wkup_m3_ipc: Fix IRQ check in wkup_m3_ipc_probe 2022-04-15 14:14:44 +02:00
ux500
versatile
xilinx
zte
Kconfig
Makefile