summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorHuisong Li <lihuisong@huawei.com>2023-12-01 11:45:31 +0800
committerWei Xu <xuwei5@hisilicon.com>2023-12-07 06:16:34 +0000
commite1e720f3f2c50a6f3440b3684decd7b7c046e111 (patch)
treef8f4ba668724079ce0840200dfac0c236ad8d40e /drivers/soc
parent734add1a278f05db2d5a0b9d280a8bce94ce5eeb (diff)
downloadlinux-e1e720f3f2c50a6f3440b3684decd7b7c046e111.tar.gz
linux-e1e720f3f2c50a6f3440b3684decd7b7c046e111.tar.bz2
linux-e1e720f3f2c50a6f3440b3684decd7b7c046e111.zip
soc: hisilicon: kunpeng_hccs: Add failure log for no _CRS method
Driver gets the PCC channel id by using the PCC GAS in _CRS. But, currently, if the firmware has no _CRS method on platform, there is not any failure log. So this patch adds the log for this. Signed-off-by: Huisong Li <lihuisong@huawei.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/hisilicon/kunpeng_hccs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/soc/hisilicon/kunpeng_hccs.c b/drivers/soc/hisilicon/kunpeng_hccs.c
index dad6235dbf1a..fd3ca0eb8175 100644
--- a/drivers/soc/hisilicon/kunpeng_hccs.c
+++ b/drivers/soc/hisilicon/kunpeng_hccs.c
@@ -85,8 +85,10 @@ static int hccs_get_pcc_chan_id(struct hccs_dev *hdev)
struct hccs_register_ctx ctx = {0};
acpi_status status;
- if (!acpi_has_method(handle, METHOD_NAME__CRS))
+ if (!acpi_has_method(handle, METHOD_NAME__CRS)) {
+ dev_err(hdev->dev, "No _CRS method.\n");
return -ENODEV;
+ }
ctx.dev = hdev->dev;
status = acpi_walk_resources(handle, METHOD_NAME__CRS,