Re: [PATCH rdma-next 04/13] RDMA/hfi1: Pass PCI device to hfi1_pcie_init()
From: Kalesh Anakkur Purayil
Date: Thu Jul 09 2026 - 05:14:37 EST
On Wed, Jul 8, 2026 at 4:24 PM Leon Romanovsky <leon@xxxxxxxxxx> wrote:
>
> From: Leon Romanovsky <leonro@xxxxxxxxxx>
>
> hfi1_pcie_init() only needs hfi1_devdata to reach the PCI device. This
> unnecessary dependency prevents common PCI setup from running before
> hfi1_devdata is allocated.
>
> Pass pci_dev directly and report failures with dev_err(), preserving the
> device BDF needed to identify the failing adapter on multi-device systems.
> Use %pe while changing the messages so errno values are decoded.
>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@xxxxxxxxxxxx>
--
Regards,
Kalesh AP
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature