[PATCH v9 5/7] ACPI: Translate the I/O range of non-MMIO devices before scanning
From: Gabriele Paoloni <hidden>
Date: 2017-07-04 16:26:12
Also in:
linux-acpi, linux-pci, lkml
From: Gabriele Paoloni <hidden>
Date: 2017-07-04 16:26:12
Also in:
linux-acpi, linux-pci, lkml
Hi Andy [...]
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 around.
Uh yes I see now in lpc_ich.c (base address is read from PCI config space and resources are set accordingly). Cheers Gab
-- With Best Regards, Andy Shevchenko