On Mon, Dec 08, 2025 at 04:56:54PM +0200, Ilpo Järvinen wrote:
__pci_read_base() sets resource start and end addresses when resource is larger than 4G but pci_bus_addr_t or resource_size_t are not capable of representing 64-bit PCI addresses. This creates a problematic resource that has non-zero flags but the start and end addresses do not yield to resource size of 0 but 1.
Replace custom resource addresses setup with resource_set_range() that correctly sets end address as -1 which results in resource_size() returning 0.
For consistency, also use resource_set_range() in the other branch that does size based resource setup.
Since I have been involved in the related discussion and the patch LGTM, Reviewed-by: Andy Shevchenko andriy.shevchenko@intel.com