]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
PCI: Add Kconfig PCI_IOV dependency for PCI_REALLOC_ENABLE_AUTO
authorSascha El-Sharkawy <elscha@sse.uni-hildesheim.de>
Wed, 20 Sep 2017 06:44:20 +0000 (08:44 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 5 Oct 2017 20:54:58 +0000 (15:54 -0500)
Ensure only valid Kconfig configurations for PCI_REALLOC_ENABLE_AUTO. This
is done by selecting PCI_IOV, which is required by PCI_REALLOC_ENABLE_AUTO
to work.

Signed-off-by: Sascha El-Sharkawy <elscha@sse.uni-hildesheim.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/Kconfig

index c32a77fc8b03a5ff876768ade086c818dee3a116..f9661b03399b4ef292eb872d9adbff2d052f8365 100644 (file)
@@ -42,13 +42,13 @@ config PCI_DEBUG
 config PCI_REALLOC_ENABLE_AUTO
        bool "Enable PCI resource re-allocation detection"
        depends on PCI
+       depends on PCI_IOV
        help
          Say Y here if you want the PCI core to detect if PCI resource
          re-allocation needs to be enabled. You can always use pci=realloc=on
-          or pci=realloc=off to override it.  Note this feature is a no-op
-          unless PCI_IOV support is also enabled; in that case it will
-          automatically re-allocate PCI resources if SR-IOV BARs have not
-          been allocated by the BIOS.
+         or pci=realloc=off to override it.  It will automatically
+         re-allocate PCI resources if SR-IOV BARs have not been allocated by
+         the BIOS.
 
          When in doubt, say N.