soc: hisilicon: kunpeng_hccs: Add the check for obtaining complete port attribute
authorHuisong Li <lihuisong@huawei.com>
Wed, 17 Apr 2024 09:48:00 +0000 (17:48 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Thu, 25 Apr 2024 01:30:33 +0000 (01:30 +0000)
commit192f97fe164dd946d0da54bf6e17ff6f9ab9ba43
tree4603b867a9c58b720581342fbdb474d14ab7c518
parent4cece764965020c22cff7665b18a012006359095
soc: hisilicon: kunpeng_hccs: Add the check for obtaining complete port attribute

The hccs_get_all_port_attr() is used to obtain the attribute of all the
ports on a specified DIE from the firmware. However this interface doesn't
ensure whether the firmware reports the complete attribute of all the ports
or not. So this patch adds the check for this.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
drivers/soc/hisilicon/kunpeng_hccs.c