Support for external PCIe (PEM)
One general comment that I missed in the earlier review is that you will need to have a bus_adjust_resource() method eventually to support NEW_PCIB. That is not a hard requirement since other parts of arm are behind on this. Aside from that this looks fine.
Thanks, good point!
The next step for this driver is to enhance resource allocation in case the size is unknown (line #442) which is required for ThunderX ethernet NIC we're currently developing the driver for.
If you don't mind, I'd like to commit this file as-is and add support for NEW_PCIB later, along with previously mentioned VFs. I think I should make this in a week or two.