]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
soc: hisilicon: kunpeng_hccs: Fix incorrect log information
authorHuisong Li <lihuisong@huawei.com>
Fri, 11 Jul 2025 06:37:06 +0000 (14:37 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Fri, 18 Jul 2025 07:27:26 +0000 (07:27 +0000)
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@huawei.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
drivers/soc/hisilicon/kunpeng_hccs.c

index 7fc353732d5574cc6c7a6ed0457449178e537bd6..65ff45fdcac7aa4fef5b11fc80ba8f3094a425af 100644 (file)
@@ -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;
                                }
                        }