[PATCH] soc: hisilicon: kunpeng_hccs: Fix incorrect log information
Wei Xu
xuwei5 at hisilicon.com
Fri Jul 18 01:05:30 PDT 2025
Hi Huisong,
On 2025/7/11 14:37, Huisong Li wrote:
> The hccs_get_all_spec_port_idle_sta() will tell user which port
> is busy when firmware doesn't allow to decrease HCCS lane number.
> However, the current log prints the index of die and port instead
> of the hardware ID user perceived.
>
> Signed-off-by: Huisong Li <lihuisong at huawei.com>
> ---
> drivers/soc/hisilicon/kunpeng_hccs.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/soc/hisilicon/kunpeng_hccs.c b/drivers/soc/hisilicon/kunpeng_hccs.c
> index 7fc353732d55..65ff45fdcac7 100644
> --- a/drivers/soc/hisilicon/kunpeng_hccs.c
> +++ b/drivers/soc/hisilicon/kunpeng_hccs.c
> @@ -1295,11 +1295,11 @@ static int hccs_get_all_spec_port_idle_sta(struct hccs_dev *hdev, u8 port_type,
> if (ret) {
> dev_err(hdev->dev,
> "hccs%u on chip%u/die%u get idle status failed, ret = %d.\n",
> - k, i, j, ret);
> + port->port_id, chip->chip_id, die->die_id, ret);
> return ret;
> } else if (idle == 0) {
> dev_info(hdev->dev, "hccs%u on chip%u/die%u is busy.\n",
> - k, i, j);
> + port->port_id, chip->chip_id, die->die_id);
> return 0;
> }
> }
>
Applied to the Hisilicon driver tree.
Thanks!
Best Regards,
Wei
More information about the linux-arm-kernel
mailing list