Subject: Re: [PATCH 40/41] drivers: tty: serial: helper for setting mmio range

From: Esben Haabendal <[email-masked]>
Date: Mon, 29 Apr 2019 09:03:16 +0200

"Enrico Weigelt, metux IT consult" <[email-masked]> writes:

> Introduce a little helpers for settings the mmio range from an
> struct resource or start/len parameters with less code.
> (also setting iotype to UPIO_MEM)
>
> Also converting drivers to use these new helpers as well as
> fetching mapsize field instead of using hardcoded values.
> (the runtime overhead of that should be negligible)
>
> The idea is moving to a consistent scheme, so later common
> calls like request+ioremap combination can be done by generic
> helpers.

Why not simply replace iobase, mapbase and mapsize with a struct
resource value instead?

Incidentally, that would allow to specify a memory resource with a
parent memory resource :)

/Esben