Commit 2b4af4b3 authored by Bjorn Helgaas's avatar Bjorn Helgaas

PCI: Fix pci_bus_resetable(), pci_slot_resetable() name typos

Fix typos in the pci_bus_resetable() and pci_slot_resetable() function
names.  No functional change intended.

Link: https://lore.kernel.org/r/20230824193712.542167-10-helgaas@kernel.orgSigned-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
parent 1ec09529
...@@ -5627,7 +5627,7 @@ int pci_try_reset_function(struct pci_dev *dev) ...@@ -5627,7 +5627,7 @@ int pci_try_reset_function(struct pci_dev *dev)
EXPORT_SYMBOL_GPL(pci_try_reset_function); EXPORT_SYMBOL_GPL(pci_try_reset_function);
/* Do any devices on or below this bus prevent a bus reset? */ /* Do any devices on or below this bus prevent a bus reset? */
static bool pci_bus_resetable(struct pci_bus *bus) static bool pci_bus_resettable(struct pci_bus *bus)
{ {
struct pci_dev *dev; struct pci_dev *dev;
...@@ -5637,7 +5637,7 @@ static bool pci_bus_resetable(struct pci_bus *bus) ...@@ -5637,7 +5637,7 @@ static bool pci_bus_resetable(struct pci_bus *bus)
list_for_each_entry(dev, &bus->devices, bus_list) { list_for_each_entry(dev, &bus->devices, bus_list) {
if (dev->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET || if (dev->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET ||
(dev->subordinate && !pci_bus_resetable(dev->subordinate))) (dev->subordinate && !pci_bus_resettable(dev->subordinate)))
return false; return false;
} }
...@@ -5695,7 +5695,7 @@ static int pci_bus_trylock(struct pci_bus *bus) ...@@ -5695,7 +5695,7 @@ static int pci_bus_trylock(struct pci_bus *bus)
} }
/* Do any devices on or below this slot prevent a bus reset? */ /* Do any devices on or below this slot prevent a bus reset? */
static bool pci_slot_resetable(struct pci_slot *slot) static bool pci_slot_resettable(struct pci_slot *slot)
{ {
struct pci_dev *dev; struct pci_dev *dev;
...@@ -5707,7 +5707,7 @@ static bool pci_slot_resetable(struct pci_slot *slot) ...@@ -5707,7 +5707,7 @@ static bool pci_slot_resetable(struct pci_slot *slot)
if (!dev->slot || dev->slot != slot) if (!dev->slot || dev->slot != slot)
continue; continue;
if (dev->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET || if (dev->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET ||
(dev->subordinate && !pci_bus_resetable(dev->subordinate))) (dev->subordinate && !pci_bus_resettable(dev->subordinate)))
return false; return false;
} }
...@@ -5843,7 +5843,7 @@ static int pci_slot_reset(struct pci_slot *slot, bool probe) ...@@ -5843,7 +5843,7 @@ static int pci_slot_reset(struct pci_slot *slot, bool probe)
{ {
int rc; int rc;
if (!slot || !pci_slot_resetable(slot)) if (!slot || !pci_slot_resettable(slot))
return -ENOTTY; return -ENOTTY;
if (!probe) if (!probe)
...@@ -5910,7 +5910,7 @@ static int pci_bus_reset(struct pci_bus *bus, bool probe) ...@@ -5910,7 +5910,7 @@ static int pci_bus_reset(struct pci_bus *bus, bool probe)
{ {
int ret; int ret;
if (!bus->self || !pci_bus_resetable(bus)) if (!bus->self || !pci_bus_resettable(bus))
return -ENOTTY; return -ENOTTY;
if (probe) if (probe)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment