[PATCH v2 0/2] PCI+IB/hfi1: Fold duplicate secondary bus reset code

From: Maciej W. Rozycki

Date: Mon May 04 2026 - 20:06:21 EST


Hi,

This v2 of the patch series addresses a documentation issue raised in v1.

In the course of verifying my PCIe link training failure workaround (cf.
<https://lore.kernel.org/r/alpine.DEB.2.21.2305310024400.59226@xxxxxxxxxxxxxxxxx/>)
in the context of secondary bus reset handling I found a piece of code in
the InfiniBand HFI1 driver that duplicates what we already have as private
code in PCI core. This patch series removes this duplication by exporting
said private code and than making use of it in the HFI1 driver.

As I have no means to run-time verify InfiniBand code I have only build
these patches, for x86-64, with the HFI1 driver both built in and modular.
Please see individual change descriptions for further details.

Please consider.

Previous iterations:

- v1 at: <https://lore.kernel.org/r/alpine.DEB.2.21.2306200153110.14084@xxxxxxxxxxxxxxxxx/>.

Maciej