summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/qat/qat_c3xxx
diff options
context:
space:
mode:
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>2020-09-04 09:04:15 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2020-09-11 14:39:18 +1000
commit4eb3f795bda0a3f79f4270528b73c6022a5487ec (patch)
treefa9ffdae4ac049cac03e68b849cd0cf685418c74 /drivers/crypto/qat/qat_c3xxx
parentb7da560ea251fce2771a0ca099c5a402147115c5 (diff)
downloadlinux-stable-4eb3f795bda0a3f79f4270528b73c6022a5487ec.tar.gz
linux-stable-4eb3f795bda0a3f79f4270528b73c6022a5487ec.tar.bz2
linux-stable-4eb3f795bda0a3f79f4270528b73c6022a5487ec.zip
crypto: qat - include domain in top level debugfs path
Use pci_name() when creating debugfs entries in order to include PCI domain in the path. Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_c3xxx')
-rw-r--r--drivers/crypto/qat/qat_c3xxx/adf_drv.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/crypto/qat/qat_c3xxx/adf_drv.c b/drivers/crypto/qat/qat_c3xxx/adf_drv.c
index 020d099409e5..8a85484dca5b 100644
--- a/drivers/crypto/qat/qat_c3xxx/adf_drv.c
+++ b/drivers/crypto/qat/qat_c3xxx/adf_drv.c
@@ -143,10 +143,8 @@ static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
}
/* Create dev top level debugfs entry */
- snprintf(name, sizeof(name), "%s%s_%02x:%02d.%d",
- ADF_DEVICE_NAME_PREFIX, hw_data->dev_class->name,
- pdev->bus->number, PCI_SLOT(pdev->devfn),
- PCI_FUNC(pdev->devfn));
+ snprintf(name, sizeof(name), "%s%s_%s", ADF_DEVICE_NAME_PREFIX,
+ hw_data->dev_class->name, pci_name(pdev));
accel_dev->debugfs_dir = debugfs_create_dir(name, NULL);