Re: [PATCH 2/3] mcb: Fix detection of iomapped pci devices

From: Johannes Thumshirn

Date: Fri Feb 27 2026 - 09:04:13 EST


On 2/26/26 4:13 PM, Filip Jensen wrote:
The mcb driver in a PCI bus is not detecting if an attached device has
an iomapped or a memory mapped BAR, as all the addresses returned by
pci_resource_start end in 0.

Instead of the low level approach, which is still valid for lpc buses,
here it will be used the standard PCI helper pci_resource_flags for
checking if the PCI BAR is IO mapped (as it is done in mcb_pci_probe)

Hi Filip,

I think this patch is not needed, because in patch 3/3 you change all of it again to use the 'chameleon_parse_ops' you introduced. Which IMHO is the cleaner approach anyways.

Thanks,

Johannes