Re: [PATCH v3] PCI: Only enable IO window if supported

From: Yinghai Lu
Date: Thu Aug 06 2015 - 11:58:46 EST


On Wed, Aug 5, 2015 at 9:50 PM, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
> If I understand you correctly, we might need to change the code
> in pci_read_bridge_io() as follows.
>
> From
>
> if (!(child->bus_flags & PCI_BUS_FLAGS_SUPPORTS_IO))
> return;
>
> to something like
>
> if (!(child->bus_flags & PCI_BUS_FLAGS_SUPPORTS_IO)) {
> if (dev->transparent)
> return;
> child->bus_flags |= PCI_BUS_FLAGS_SUPPORTS_IO;
> }
>
Then how about: the root bus really does not support IO PORT resource.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/