Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp316069rdb; Thu, 30 Nov 2023 05:46:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IFB6KPK4t/rcevQ7BKZccQZ7g4nk+9lBmBJASpAMEnLaYuvtqATbAziX2g3dIvBkapFTtrt X-Received: by 2002:a05:6808:191b:b0:3b8:412a:e75b with SMTP id bf27-20020a056808191b00b003b8412ae75bmr27139753oib.10.1701351982754; Thu, 30 Nov 2023 05:46:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701351982; cv=none; d=google.com; s=arc-20160816; b=hmee8ADPYdQTaYmN1MsA+ftnNLa74o3pKbAyegxnt5WF+I7QTyPgo9dYGYBqmoJOHL 02us1cgb0NKB5SAcwfm0A08Llz2V57fXbF8WnmlEawq5mu3Zu88i4aAJZ+BNv0oRdccM RchYG3Zmds0Tc7EAVgz3EHjpBHUYlNJKY4ojRHKQq5EU4PsCmVnawgytn36nZ20GFv2J 0i+Vj0B8+gsNX8LZAnXGdwyIJ8RzEJr6PLT+ywId3I2EJ93UzaSSl/nQXRsRfWBw1x1a +hRIwsf0QzxqTjcRoTxPIB7uvGbkPani9iw2tOq9Gfb6g6WNrT1IgaX6hYr4zQ0hDhuN SVGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6t4GYaMoe+7D3m8tv5LgAud4plDMcH6cNWHw1thlePk=; fh=VBTKU4aD+sxp5soex/RyS/kCRSv+g5d5nay990/Axgg=; b=LRl3jkYK90OGAdVh6m/0DXM42dcy7lLbgEzq0DK9gOSuSfIAqMIOw8GvhM7hCiKX41 rrmQpewj2LFTX+9Vip40zeOn4XVlnXvIhdb3vg9SH6XBWF0hv+hMRmfZvbPWIPd3b2q/ GKomtrCrO7PTRO8Y6VqmBYYyynoollslCxVYoks5WrAO2wsY37D1ggCxdJq0PapcWukT kJZhUXAzkOLkSGiMVlH6BB3YznfVEwdlNBahuV6GokNXr+x/0yOYd6RWha2wrYZb1M1m nmzS+y3nGkFD5XzVMWcX+cDZfLscfWYJ4CcQi72hrTc1bqC7pLEggeSLzjUKGQWTT6SO gqew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e4-20020a656884000000b005c21fa725casi1291108pgt.596.2023.11.30.05.46.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 05:46:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C50C180CF546; Thu, 30 Nov 2023 05:46:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345689AbjK3Npu (ORCPT + 99 others); Thu, 30 Nov 2023 08:45:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345682AbjK3Npt (ORCPT ); Thu, 30 Nov 2023 08:45:49 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B92BF10F8 for ; Thu, 30 Nov 2023 05:45:55 -0800 (PST) Received: from kwepemm000004.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Sgy9t0Gw8zWj0x; Thu, 30 Nov 2023 21:45:06 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemm000004.china.huawei.com (7.193.23.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 30 Nov 2023 21:45:51 +0800 From: Huisong Li To: CC: , , , , , , , , Subject: [PATCH v2 2/4] soc: hisilicon: kunpeng_hccs: Add failure log for no _CRS method Date: Thu, 30 Nov 2023 21:45:48 +0800 Message-ID: <20231130134550.33398-3-lihuisong@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20231130134550.33398-1-lihuisong@huawei.com> References: <20231109054526.27270-1-lihuisong@huawei.com> <20231130134550.33398-1-lihuisong@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm000004.china.huawei.com (7.193.23.18) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 30 Nov 2023 05:46:13 -0800 (PST) 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 Reviewed-by: Jonathan Cameron --- drivers/soc/hisilicon/kunpeng_hccs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.33.0