mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
PCI: Log all resource claims
There are two ways to graft resource into resource tree in PCI, pci_assign_resource() and pci_claim_resource(). Only the former logs the action, which complicated troubleshooting the cases where resources are assigned by pci_claim_resource(), which mostly assigns the addresses inherited from the FW. Add logging into pci_claim_resource() to make troubleshooting easier. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://patch.msgid.link/20260429122617.7324-2-ilpo.jarvinen@linux.intel.com
This commit is contained in:
parent
254f49634e
commit
432b936fa6
|
|
@ -167,6 +167,8 @@ int pci_claim_resource(struct pci_dev *dev, int resource)
|
|||
return -EBUSY;
|
||||
}
|
||||
|
||||
pci_dbg(dev, "%s %pR: claiming\n", res_name, res);
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(pci_claim_resource);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user