summaryrefslogtreecommitdiff
path: root/drivers/crypto/caam/pdb.h
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2020-06-22 19:12:48 +0300
committerBjorn Helgaas <bhelgaas@google.com>2020-06-30 16:58:27 -0500
commit5396956cc7c6874180c9bfc1ceceb02b739a6a87 (patch)
tree82f69eacb9b6f73c3f4eeb8f2072778a0739c3a0 /drivers/crypto/caam/pdb.h
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407 (diff)
PCI: Make pcie_find_root_port() work for Root Ports
Commit 6ae72bfa656e ("PCI: Unify pcie_find_root_port() and pci_find_pcie_root_port()") broke acpi_pci_bridge_d3() because calling pcie_find_root_port() on a Root Port returned NULL when it should return the Root Port, which in turn broke power management of PCIe hierarchies. Rework pcie_find_root_port() so it returns its argument when it is already a Root Port. [bhelgaas: test device only once, test for PCIe] Fixes: 6ae72bfa656e ("PCI: Unify pcie_find_root_port() and pci_find_pcie_root_port()") Link: https://lore.kernel.org/r/20200622161248.51099-1-mika.westerberg@linux.intel.com Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/crypto/caam/pdb.h')
0 files changed, 0 insertions, 0 deletions