Skip to content

Commit b113643

Browse files
LiHuiSong1joyxu
authored andcommitted
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: Huisong Li <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Wei Xu <[email protected]>
1 parent 19272b3 commit b113643

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/soc/hisilicon/kunpeng_hccs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,11 +1295,11 @@ static int hccs_get_all_spec_port_idle_sta(struct hccs_dev *hdev, u8 port_type,
12951295
if (ret) {
12961296
dev_err(hdev->dev,
12971297
"hccs%u on chip%u/die%u get idle status failed, ret = %d.\n",
1298-
k, i, j, ret);
1298+
port->port_id, chip->chip_id, die->die_id, ret);
12991299
return ret;
13001300
} else if (idle == 0) {
13011301
dev_info(hdev->dev, "hccs%u on chip%u/die%u is busy.\n",
1302-
k, i, j);
1302+
port->port_id, chip->chip_id, die->die_id);
13031303
return 0;
13041304
}
13051305
}

0 commit comments

Comments
 (0)