From 577c6b9225515aeb32918881bfb5503c3fd71068 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Mon, 15 Aug 2022 00:08:58 +0200 Subject: pciexp_device: Propagate above-4G flag to all hotplug devices The `IORESOURCE_ABOVE_4G` flag was only explicitly set for our dummy device that reserves resources behind a hotplug port. The current re- source allocator implicitly extends this to all devices below the port, including real ones. Let's make that explicit, so future changes to the allocator can't break this rule. Change-Id: Id4c90b60682cf5c8949cde25362d286625b3e953 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/coreboot/+/66719 Reviewed-by: Arthur Heymans Reviewed-by: Tim Wawrzynczak Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/device/pciexp_device.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/device/pciexp_device.c') diff --git a/src/device/pciexp_device.c b/src/device/pciexp_device.c index c8ac391c06..6023497241 100644 --- a/src/device/pciexp_device.c +++ b/src/device/pciexp_device.c @@ -646,6 +646,7 @@ static struct device_operations pciexp_hotplug_dummy_ops = { void pciexp_hotplug_scan_bridge(struct device *dev) { + dev->hotplug_port = 1; dev->hotplug_buses = CONFIG_PCIEXP_HOTPLUG_BUSES; /* Normal PCIe Scan */ -- cgit v1.2.3