]> git.ipfire.org Git - thirdparty/linux.git/commit
soc: hisilicon: kunpeng_hccs: Return failure on having not die or port information
authorHuisong Li <lihuisong@huawei.com>
Wed, 28 Aug 2024 10:49:52 +0000 (18:49 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Mon, 14 Oct 2024 08:54:47 +0000 (08:54 +0000)
commit0c811bd2721d219bd104e0dc1fa76deee5e04ae4
treee172d33446f4317201d7cfbaea3c733c6544dae1
parent1cbe974f816cf40bc0437ebabe26b453331fb0d9
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>
drivers/soc/hisilicon/kunpeng_hccs.c