]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: Remove redundant probes for device reset support
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Feb 2018 21:22:39 +0000 (15:22 -0600)
committerBjorn Helgaas <helgaas@kernel.org>
Wed, 21 Feb 2018 23:24:04 +0000 (17:24 -0600)
commit204f4afa7ae50239c39adb13af42f5720fe7e9a5
tree1c2592f302c372e425d2a8f63e04cce93351be24
parent5b0764cac9f1b70a6704b0e546be67c24cc05517
PCI: Remove redundant probes for device reset support

We probe every device for whether it supports reset so we can tell whether
to create a sysfs "reset" file for it.  We do that probe in
pci_init_capabilities() during enumeration and save the result in
dev->reset_fn.  The result doesn't depend on any other devices on the bus
and shouldn't change after boot, so we don't need to do the probe again.

Remove the pci_probe_reset_function() calls and rely on the dev->reset_fn
we found during enumeration.  No functional change intended.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/pci.c