> -----Original Message-----
> From: Xueming(Steven) Li <[email protected]>
> Sent: Tuesday, July 13, 2021 16:14
> To: Slava Ovsiienko <[email protected]>
> Cc: NBU-Contact-Thomas Monjalon <[email protected]>;
> [email protected]; Xueming(Steven) Li <[email protected]>; Matan Azrad
> <[email protected]>; Shahaf Shuler <[email protected]>; Ray Kinsella
> <[email protected]>
> Subject: [PATCH v2 04/14] common/mlx5: get PCI device address from any
> bus
>
> From: Thomas Monjalon <[email protected]>
>
> A function is exported to allow retrieving the PCI address of the parent PCI
> device of a Sub-Function in auxiliary bus sysfs.
> The function mlx5_dev_to_pci_str() is accepting both PCI and auxiliary
> devices. In case of a PCI device, it is simply using the device name.
>
> The function mlx5_dev_to_pci_addr(), which is based on sysfs path and do
> not use any device object, is renamed to mlx5_get_pci_addr() for clarity
> purpose.
>
> Signed-off-by: Thomas Monjalon <[email protected]>
Acked-by: Viacheslav Ovsiienko <[email protected]>