Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 434aafc1 authored by Bjorn Helgaas's avatar Bjorn Helgaas
Browse files

PCI: Don't clear IORESOURCE_UNSET when updating BAR



Clear IORESOURCE_UNSET when we assign an address to a resource, not when we
write the address to the BAR.

Also, drop the "BAR %d: set to %pR" message; this is mostly redundant with
the "BAR %d: assigned %pR" message from pci_assign_resource().

Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent bd064f0a
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -101,11 +101,6 @@ void pci_update_resource(struct pci_dev *dev, int resno)

	if (disable)
		pci_write_config_word(dev, PCI_COMMAND, cmd);

	res->flags &= ~IORESOURCE_UNSET;
	dev_dbg(&dev->dev, "BAR %d: set to %pR (PCI address [%#llx-%#llx])\n",
		resno, res, (unsigned long long)region.start,
		(unsigned long long)region.end);
}

int pci_claim_resource(struct pci_dev *dev, int resource)