Thread (28 messages) 28 messages, 9 authors, 2025-07-09

Re: [PATCH v4 2/5] PCI/ERR: Add support for resetting the slots in a platform specific way

From: Wilfred Mallawa <hidden>
Date: 2025-05-09 02:59:51
Also in: linux-arm-kernel, linux-arm-msm, linux-pci, linux-riscv, lkml

On Thu, 2025-05-08 at 12:40 +0530, Manivannan Sadhasivam wrote:
Some host bridge devices require resetting the slots in a platform
specific
way to recover them from error conditions such as Fatal AER errors,
Link
Down etc... So introduce pci_host_bridge::reset_slot callback and
call it
from pcibios_reset_secondary_bus() if available.

The 'reset_slot' callback is responsible for resetting the given slot
referenced by the 'pci_dev' pointer in a platform specific way and
bring it
back to the working state if possible. If any error occurs during the
slot
reset operation, relevant errno should be returned.

Signed-off-by: Manivannan Sadhasivam
[off-list ref]
Hey Manivannan,

I've been testing this by adding support for the reset_slot() callback
in the dw-rockchip driver. Which has now fixed issues with sysfs issued
bus resets to endpoints. So feel free to use:

Tested-by: Wilfred Mallawa <redacted>

Regards,
Wilfred

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help