soc: hisilicon: kunpeng_hccs: Return failure on having not die or port information

Driver is unavailable if all die number or all port number obtained from
firmware are zero. Although this is unlikely, just to harden the code.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
This commit is contained in:
Huisong Li 2024-08-28 18:49:52 +08:00 • committed by Wei Xu
commit 0c811bd272