linux-stable/drivers/of
Hsin-Yi Wang 2d83b6548a fdt: Update CRC check for rng-seed
commit dd753d961c upstream.

Commit 428826f535 ("fdt: add support for rng-seed") moves of_fdt_crc32
from early_init_dt_verify() to early_init_dt_scan() since
early_init_dt_scan_chosen() may modify fdt to erase rng-seed.

However, arm and some other arch won't call early_init_dt_scan(), they
call early_init_dt_verify() then early_init_dt_scan_nodes().

Restore of_fdt_crc32 to early_init_dt_verify() then update it in
early_init_dt_scan_chosen() if fdt if updated.

Fixes: 428826f535 ("fdt: add support for rng-seed")
Reported-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-02 16:18:10 +02:00
..
unittest-data
address.c of/address: Fix of_node memory leak in of_dma_is_coherent 2020-11-18 18:27:57 +01:00
base.c
device.c
dynamic.c
fdt.c fdt: Update CRC check for rng-seed 2022-07-02 16:18:10 +02:00
fdt_address.c
irq.c
Kconfig
Makefile
of_mdio.c of: of_mdio: Correct loop scanning logic 2020-07-22 09:22:23 +02:00
of_net.c
of_numa.c
of_pci.c
of_pci_irq.c
of_private.h
of_reserved_mem.c of: Fix truncation of memory sizes on 32-bit platforms 2021-07-20 16:17:40 +02:00
overlay.c
pdt.c
platform.c
property.c
resolver.c
unittest.c of: unittest: kmemleak in of_unittest_platform_populate() 2020-04-24 08:01:17 +02:00