Commit 1c6202a5 authored by Huisong Li's avatar Huisong Li Committed by Jeiwei Li
Browse files

soc: hisilicon: kunpeng_hccs: Add failure log for no _CRS method

mainline inclusion
from mainline-v6.8-rc1
commit e1e720f3f2c50a6f3440b3684decd7b7c046e111
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8Y3PY
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v6.6-rc1&id=e1e720f3f2c50a6f3440b3684decd7b7c046e111



--------------------------------

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: default avatarHuisong Li <lihuisong@huawei.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarWei Xu <xuwei5@hisilicon.com>
parent 2be01f2a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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,