linux-stable/drivers/of
Hsin-Yi Wang eb58154715 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:17:16 +02:00
..
unittest-data
Kconfig of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc 2020-02-14 16:31:01 -05:00
Makefile
address.c of/address: Fix of_node memory leak in of_dma_is_coherent 2020-11-18 18:26:27 +01:00
base.c of: fix missing kobject init for !SYSFS && OF_DYNAMIC config 2020-04-24 07:59:10 +02:00
device.c
dynamic.c
fdt.c fdt: Update CRC check for rng-seed 2022-07-02 16:17:16 +02:00
fdt_address.c
irq.c
of_mdio.c of: mdio: Fix a signedness bug in of_phy_get_and_connect() 2020-01-29 10:24:32 +01:00
of_net.c
of_numa.c of, numa: Validate some distance map rules 2018-11-21 09:26:00 +01:00
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:21:05 +02:00
overlay.c
pdt.c
platform.c
resolver.c
unittest.c of: unittest: kmemleak in of_unittest_platform_populate() 2020-04-24 07:59:10 +02:00