Re: [PATCH v4 1/3] amr64: map FDT as RW for early_init_dt_scan()

From: Rob Herring
Date: Fri May 24 2019 - 18:01:43 EST


On Mon, May 20, 2019 at 12:04:44AM +0800, Hsin-Yi Wang wrote:
> Currently in arm64, FDT is mapped to RO before it's passed to
> early_init_dt_scan(). However, there might be some code that needs
> to modify FDT during init. Map FDT to RW until unflatten DT.

typo in the subject.

Otherwise, this one seems fine to me.

>
> Signed-off-by: Hsin-Yi Wang <hsinyi@xxxxxxxxxxxx>
> ---
> change log v2->v4:
> * v3 abandoned
> * add an arg pgprot_t to fixmap_remap_fdt()
> ---
> arch/arm64/include/asm/mmu.h | 2 +-
> arch/arm64/kernel/setup.c | 5 ++++-
> arch/arm64/mm/mmu.c | 4 ++--
> 3 files changed, 7 insertions(+), 4 deletions(-)