On Thu, Mar 4, 2021 at 10:42 PM Hector Martin <[email protected]> wrote:

> Earlycon support is identical to S3C2410, but Apple SoCs also need
> MMIO mapped as nGnRnE. This is handled generically for normal drivers
> including the normal UART path here, but earlycon uses fixmap and
> runs before that scaffolding is ready.
>
> Since this is the only case where we need this fix, it makes more
> sense to do it here in the UART driver instead of introducing a
> whole fdt nonposted-mmio resolver just for earlycon/fixmap.
>
> Suggested-by: Arnd Bergmann <[email protected]>
> Signed-off-by: Hector Martin <[email protected]>

This is as elegant as it gets!
Reviewed-by: Linus Walleij <[email protected]>

Yours,
Linus Walleij

Reply via email to