summaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw/pci.c
diff options
context:
space:
mode:
authorAndy Shevchenko2017-01-17 12:57:26 +0100
committerVinod Koul2017-01-25 07:21:39 +0100
commit08d62f58aa2587132a930afbe8664379b430e2dd (patch)
tree809307cbc91f239274be510b69e4300155fc06e2 /drivers/dma/dw/pci.c
parentdmaengine: dw: Fix data corruption in large device to memory transfers (diff)
downloadkernel-qcow2-linux-08d62f58aa2587132a930afbe8664379b430e2dd.tar.gz
kernel-qcow2-linux-08d62f58aa2587132a930afbe8664379b430e2dd.tar.xz
kernel-qcow2-linux-08d62f58aa2587132a930afbe8664379b430e2dd.zip
dmaengine: dw: register IRQ and DMA pool with instance ID
It is really useful not only for debugging to have an IRQ line and DMA pool labeled with driver and its instance ID. Do this for DesignWare DMA driver. All current users of this IP would be enhanced later on. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/dw/pci.c')
-rw-r--r--drivers/dma/dw/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dw/pci.c b/drivers/dma/dw/pci.c
index 7558a9c38fda..47194372f738 100644
--- a/drivers/dma/dw/pci.c
+++ b/drivers/dma/dw/pci.c
@@ -47,6 +47,7 @@ static int dw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid)
return -ENOMEM;
chip->dev = &pdev->dev;
+ chip->id = pdev->devfn;
chip->regs = pcim_iomap_table(pdev)[0];
chip->irq = pdev->irq;
chip->pdata = pdata;