RE: [PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning
From: Gabriele Paoloni
Date: Tue Jul 04 2017 - 12:26:27 EST
> You may do it on stack. Define your cell statically (but not const)
> and apply resources just before mfd_add_devices() call.
Ok thanks got it
> There are examples in the existing drivers. Intel LPC comes to my mind
> and perhaps PMC (Broxton), though latter has too much other stuff
Uh yes I see now in lpc_ich.c (base address is read from PCI config space
and resources are set accordingly).
> With Best Regards,
> Andy Shevchenko