summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2016-02-24 13:43:54 -0600
committerBjorn Helgaas <bhelgaas@google.com>2016-04-11 14:34:27 -0500
commit48c830809ce6e143781172c03a9794cb66802b31 (patch)
treead4fde82f73a11007164936c42f9242c885e68b6 /drivers/pci/pci.c
parentf0af9593372abfde34460aa1250e670cc535a7d8 (diff)
downloadop-kernel-dev-48c830809ce6e143781172c03a9794cb66802b31.zip
op-kernel-dev-48c830809ce6e143781172c03a9794cb66802b31.tar.gz
PCI: Move informational printk to pci_add_dma_alias()
One of the quirks that adds DMA aliases logs an informational message in dmesg. Move that to pci_add_dma_alias() so all users log the message consistently. No functional change intended (except extra message). Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 1162118..c82ebd0 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -4590,6 +4590,8 @@ void pci_add_dma_alias(struct pci_dev *dev, u8 devfn)
{
dev->dma_alias_devfn = devfn;
dev->dev_flags |= PCI_DEV_FLAGS_DMA_ALIAS_DEVFN;
+ dev_info(&dev->dev, "Enabling fixed DMA alias to %02x.%d\n",
+ PCI_SLOT(devfn), PCI_FUNC(devfn));
}
bool pci_device_is_present(struct pci_dev *pdev)
OpenPOWER on IntegriCloud