Re: [PATCH] staging: fieldbus: anybuss: force address space conversion

From: Sven Van Asbroeck
Date: Tue May 21 2019 - 13:09:26 EST


On Tue, May 21, 2019 at 12:53 PM Sven Van Asbroeck <thesven73@xxxxxxxxx> wrote:
>
> On Tue, May 21, 2019 at 12:24 PM Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:
> >
> > what is so odd about this code that makes you have to jump through
> > strange hoops that no other driver has to?
> >
>
> Basically because it creates a regmap which accesses __iomem memory,
> instead of i2c/spi.
>

Wait a second... doesn't devm_regmap_init_mmio() do exactly that ?!
How could I overlook this :( :(