Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1429650rwb; Wed, 9 Nov 2022 18:14:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7OzYagQFzA/PRciuf5JF2Qjh8Xixk2cxzhSZSH0d7TUeYC6E6WtoT+WUCQrTDW2edyOMgS X-Received: by 2002:a17:907:7422:b0:7ae:7993:ae06 with SMTP id gj34-20020a170907742200b007ae7993ae06mr9983793ejc.226.1668046497618; Wed, 09 Nov 2022 18:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668046497; cv=none; d=google.com; s=arc-20160816; b=mNHjJaUqGPTt0jGy3e8hyl6h3zizhqHF3MDlHTVAfMaczDqaQcIQ67Vs9INI70W5Eo g1LGToAlElHrx2oHRFcxu05aHXHQQevgDcDbqsZsbNOjATsZPRkw+RKDOoLQuUMejKWz nsaCorT8btNSBGO1Azyyezan/JF3o1n7+f7dTUvWVwUITcl33NKH50kOyx+C8WhTdnAL VRLyVQCcd73VfrZ0CQjhd0hqii9v/TuEsSZocohAP82EwL+Ph5fj/yWb8Ji/o2BTo4HC zT+BkWKR9uLR3UwJCiHtklmSAKt2JEZGwfNBuBjyXuWy73+kzOKkJEF3f8fRWVekk1jl UMaw== 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 :message-id:date:subject:cc:to:from; bh=m0nFCFKm7yWJDKa/Er+s5pfeQ4QtO/togshIpFNs/cM=; b=bzJD5EZwyhKMkQ0SKp3+k3p2eH6Xd/SLjwzJGSlY9+mI+3xOIH+nSoRYLMnJ0YmFsl nbuCtcQEAFCwJUyv2UUoWhSE5abDBY412Rho72jDYx3idQxn1svFvi7nfAgRzm6K7nh3 XvdIf+h9hlrXcdFqw3ns5TY96kgQGsu7szvhZuNNL7/mtToLHHfySZBqoY+nTcNjeLAf RsjWfuU+HrtfdOtg+XeYWuEe/vINn166i1B+1AUl9Fuk9wfBWpJ1Vv1dxE2QwNPSQmO/ vhDhmMxBp+u16dxGJ+OM10NndNsKyQUSSBF+8+58vt1/rWDXHBaBAyHeuoQ20cUMTWd0 CedQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a056402268600b004635f094565si20710574edd.535.2022.11.09.18.14.35; Wed, 09 Nov 2022 18:14:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232286AbiKJBww (ORCPT + 93 others); Wed, 9 Nov 2022 20:52:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231298AbiKJBwt (ORCPT ); Wed, 9 Nov 2022 20:52:49 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5C50B48F; Wed, 9 Nov 2022 17:52:48 -0800 (PST) Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4N74bP1NfTzmVp0; Thu, 10 Nov 2022 09:52:33 +0800 (CST) Received: from kwepemm600004.china.huawei.com (7.193.23.242) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 10 Nov 2022 09:52:47 +0800 Received: from localhost.localdomain (10.28.79.22) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 10 Nov 2022 09:52:46 +0800 From: Huisong Li To: , CC: , , , , , , , , , , , Subject: [PATCH 0/3] ACPI: PCC: optimize pcc codes and fix one bug Date: Thu, 10 Nov 2022 09:50:31 +0800 Message-ID: <20221110015034.7943-1-lihuisong@huawei.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.28.79.22] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600004.china.huawei.com (7.193.23.242) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 This series optimizes PCC codes as follows: - Rename platform interrupt bit macro name to make it more reasonable and readable. - add check for platform interrupt in acpi_pcc.c In addition, this series fixes a problem that mailbox channel can still be requested successfully when fail to initialize PCC. Huisong Li (3): mailbox: pcc: rename platform interrupt bit macro name ACPI: PCC: add check for platform interrupt mailbox: pcc: fix 'pcc_chan_count' when fail to initialize PCC drivers/acpi/acpi_pcc.c | 47 +++++++++++++++++++++++++---------------- drivers/mailbox/pcc.c | 13 ++++++++---- include/acpi/actbl2.h | 2 +- 3 files changed, 39 insertions(+), 23 deletions(-) -- 2.22.0