]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PCI: Don't reassign resources that are already aligned
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 17 Apr 2017 20:20:58 +0000 (15:20 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 19 Apr 2017 17:52:40 +0000 (12:52 -0500)
commit0dde1c08d1b9dea01cefb327dba8a6e3ae795214
tree0bb3fcdc85007277cafcd3dcd0e52f6a4136c101
parent81a5e70e0de55707c3184d186b2103b5bb9377ec
PCI: Don't reassign resources that are already aligned

The "pci=resource_alignment=" kernel argument designates devices for which
we want alignment greater than is required by the PCI specs.  Previously we
set IORESOURCE_UNSET for every MEM resource of those devices, even if the
resource was *already* sufficiently aligned.

If a resource is already sufficiently aligned, leave it alone and don't try
to reassign it.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c