[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87ef5lz423.fsf@haabendal.dk>
Date: Mon, 29 Apr 2019 09:03:16 +0200
From: Esben Haabendal <esben@...bendal.dk>
To: "Enrico Weigelt\, metux IT consult" <info@...ux.net>
Cc: linux-kernel@...r.kernel.org, gregkh@...uxfoundation.org,
andrew@...id.au, andriy.shevchenko@...ux.intel.com,
macro@...ux-mips.org, vz@...ia.com, slemieux.tyco@...il.com,
khilman@...libre.com, liviu.dudau@....com, sudeep.holla@....com,
lorenzo.pieralisi@....com, davem@...emloft.net, jacmet@...site.dk,
linux@...sktech.co.nz, matthias.bgg@...il.com,
linux-mips@...r.kernel.org, linux-serial@...r.kernel.org,
linux-ia64@...r.kernel.org, linux-amlogic@...ts.infradead.org,
linuxppc-dev@...ts.ozlabs.org, sparclinux@...r.kernel.org
Subject: Re: [PATCH 40/41] drivers: tty: serial: helper for setting mmio range
"Enrico Weigelt, metux IT consult" <info@...ux.net> 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
Powered by blists - more mailing lists