PCI/portdrv: Report reset for frozen channel
authorKeith Busch <kbusch@kernel.org>
Mon, 4 Jan 2021 23:03:00 +0000 (15:03 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Feb 2021 23:10:42 +0000 (17:10 -0600)
commitba952824e6c106f979c07814c8e3ef7405dd7b29
tree85dd9804b3d4009f390acb26cbc887e15500bd23
parent33ac78bd3b509d36e7f109a447e28af42e637cb2
PCI/portdrv: Report reset for frozen channel

The PCI error recovery always resets the link for a frozen state, so the
port driver should return that a reset is required for its result. This
will get the .slot_reset() callback invoked, which is necessary to
restore the port's config space. Without this, the driver had been
relying on downstream drivers to return this status.

Link: https://lore.kernel.org/r/20210104230300.1277180-6-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: Hedi Berriche <hedi.berriche@hpe.com>
drivers/pci/pcie/portdrv_pci.c