Re: [PATCH mlx5-next 1/2] PCI/TPH: Expose pcie_tph_get_st_table_loc()

From: Leon Romanovsky
Date: Sun Nov 02 2025 - 05:17:39 EST


On Mon, Oct 27, 2025 at 11:34:01AM +0200, Leon Romanovsky wrote:
> From: Yishai Hadas <yishaih@xxxxxxxxxx>
>
> Expose pcie_tph_get_st_table_loc() to be used by drivers as will be done
> in the next patch from the series.
>
> Signed-off-by: Yishai Hadas <yishaih@xxxxxxxxxx>
> Signed-off-by: Edward Srouji <edwards@xxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
> ---
> drivers/pci/tph.c | 7 ++++---
> include/linux/pci-tph.h | 1 +
> 2 files changed, 5 insertions(+), 3 deletions(-)

<...>

> -static u32 get_st_table_loc(struct pci_dev *pdev)
> +u32 pcie_tph_get_st_table_loc(struct pci_dev *pdev)
> {
> u32 reg;
>
> @@ -163,6 +163,7 @@ static u32 get_st_table_loc(struct pci_dev *pdev)
>
> return FIELD_GET(PCI_TPH_CAP_LOC_MASK, reg);
> }
> +EXPORT_SYMBOL(pcie_tph_get_st_table_loc);

Bjorn,

Are you ok with this change?

Thanks