We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579e390 commit 4a3ae40Copy full SHA for 4a3ae40
drivers/pci/setup-res.c
@@ -409,10 +409,16 @@ EXPORT_SYMBOL(pci_release_resource);
409
int pci_resize_resource(struct pci_dev *dev, int resno, int size)
410
{
411
struct resource *res = dev->resource + resno;
412
+ struct pci_host_bridge *host;
413
int old, ret;
414
u32 sizes;
415
u16 cmd;
416
417
+ /* Check if we must preserve the firmware's resource assignment */
418
+ host = pci_find_host_bridge(dev->bus);
419
+ if (host->preserve_config)
420
+ return -ENOTSUPP;
421
+
422
/* Make sure the resource isn't assigned before resizing it. */
423
if (!(res->flags & IORESOURCE_UNSET))
424
return -EBUSY;
0 commit comments