OSDN Git Service

PCI/AER: Clear AER status from Root Port when resetting Downstream Port
authorKeith Busch <kbusch@kernel.org>
Mon, 4 Jan 2021 23:02:57 +0000 (15:02 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Feb 2021 23:10:42 +0000 (17:10 -0600)
commit7a8a22be35a5058366429e311017e05206c43137
treee1b79ca6881ea36f2954b6e85e4dc2d76c1dc0b7
parent7d7cbeaba5b7aea8e1e4eb988d6b5e7cb3c34490
PCI/AER: Clear AER status from Root Port when resetting Downstream Port

The pci_dev parameter given to aer_root_reset() may be a Downstream Port
rather than the Root Port. Get the Root Port from the provided device in
order to clear the root's AER status.

Link: https://lore.kernel.org/r/20210104230300.1277180-3-kbusch@kernel.org
Tested-by: Hedi Berriche <hedi.berriche@hpe.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Sean V Kelley <sean.v.kelley@intel.com>
Acked-by: Hedi Berriche <hedi.berriche@hpe.com>
drivers/pci/pcie/aer.c