diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2018-01-31 10:13:09 -0600 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2018-01-31 10:13:09 -0600 |
commit | a07ae842e209196ffe0fe8feacd489aba772d8a0 (patch) | |
tree | 1422a2ec714d711a58c4593f1647cebeebc999c6 /drivers/pci/pci-sysfs.c | |
parent | 01f095e46ba3a91b06709170c19bc3936e872541 (diff) | |
parent | 0077a845f7e31a6eabafaefc99540903b65439d4 (diff) | |
download | linux-stable-a07ae842e209196ffe0fe8feacd489aba772d8a0.tar.gz linux-stable-a07ae842e209196ffe0fe8feacd489aba772d8a0.tar.bz2 linux-stable-a07ae842e209196ffe0fe8feacd489aba772d8a0.zip |
Merge branch 'pci/virtualization' into next
* pci/virtualization:
PCI: Expose ari_enabled in sysfs
PCI: Add function 1 DMA alias quirk for Marvell 9128
PCI: Mark Ceton InfiniTV4 INTx masking as broken
xen/pci: Use acpi_noirq_set() helper to avoid #ifdef
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r-- | drivers/pci/pci-sysfs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index 7b282f4ba8dc..eb6bee8724cc 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c @@ -278,6 +278,16 @@ static ssize_t subordinate_bus_number_show(struct device *dev, } static DEVICE_ATTR_RO(subordinate_bus_number); +static ssize_t ari_enabled_show(struct device *dev, + struct device_attribute *attr, + char *buf) +{ + struct pci_dev *pci_dev = to_pci_dev(dev); + + return sprintf(buf, "%u\n", pci_ari_enabled(pci_dev->bus)); +} +static DEVICE_ATTR_RO(ari_enabled); + static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, char *buf) { @@ -786,6 +796,7 @@ static struct attribute *pci_dev_attrs[] = { &dev_attr_devspec.attr, #endif &dev_attr_driver_override.attr, + &dev_attr_ari_enabled.attr, NULL, }; |