Commit b1136432 authored by Huisong Li's avatar Huisong Li Committed by Wei Xu
Browse files

soc: hisilicon: kunpeng_hccs: Fix incorrect log information



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: default avatarHuisong Li <lihuisong@huawei.com>
Reviewed-by: default avatarJonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: default avatarWei Xu <xuwei5@hisilicon.com>
parent 19272b37
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
				}
			}