Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1421841rwb; Wed, 9 Nov 2022 18:06:10 -0800 (PST) X-Google-Smtp-Source: AMsMyM66cycuaL+68S/jFbWFAOHcqZxPzhnqZjMHQkKxEPspZKyweaqNpOUGaHyVRCTC0ZLkwTob X-Received: by 2002:a05:6a00:1812:b0:56d:74bf:3204 with SMTP id y18-20020a056a00181200b0056d74bf3204mr54499231pfa.39.1668045970002; Wed, 09 Nov 2022 18:06:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668045969; cv=none; d=google.com; s=arc-20160816; b=fkyIIDjxJ66JCD3Kq074io3SfpfRJu08bH1ilzLUJBQXhz3h1BElWkpNksfSIKgvle Yyqxl2j3mfoqCp/SXxRDTHVU7YlKJk/n6WTOXXrNqDrWQbtoYOcimKwndx2mOMIyTX90 eb7FKakdqWl0zyoAaSZzoXzSU55qyyQraMHlQvoYV5VkUylffTf2uDpAvJONCrGyqsHs yjqIlcQq2gu+dGxhFFAoV3aaGvIhDkfHH41UV2HNBkz5l9YZZ8WTFEgaXSb638zICD+R SkePKcni1+rTKpVr2Ffxbro2QIn1GuAT3siom1lBt7rM8tQR0tfcFhxEyL2oSfo8+Eex N3PQ== 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=tDE2QwQVAu+A8jsdIDenhVHvQZ14jKqmHFyR6TkCK38=; b=BLCbNGJS1RFFXaYcoXBv8XV8wucuZi1LMsVBP2iXrtR9hJH14DehZT9171TNmfNT8+ kKbNZUh1v40//uPceTBx7AIDQhlv6GU44S2d7oqEkSojAmg0yH5Rd/48mT2Z1a/SbJQZ QByO7l+6X+aobNsevwxMIEj3zuyPI7y0Whi8he5JGKQ0oHPpHqnr4O7Vp4U1jQ87YKTI 0t4nbGFgdu0N49E8pmw7QddqqPobcRaGN8rV9xJr2Zk4G9FPaBiwGm2z7IzqDQKvFB+R FRXptuaFAVeA9+l0sGG1K6e1/qPUyjy5LQBLH80xf1GibxMmeFu8fbW4imgN3OtsaGio ItkQ== 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 a2-20020a170902ecc200b0017f62505522si21395657plh.608.2022.11.09.18.05.57; Wed, 09 Nov 2022 18:06:09 -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 S232306AbiKJBw4 (ORCPT + 93 others); Wed, 9 Nov 2022 20:52:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231830AbiKJBwu (ORCPT ); Wed, 9 Nov 2022 20:52:50 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35B4AB497; Wed, 9 Nov 2022 17:52:49 -0800 (PST) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4N74WQ34YlzpWKF; Thu, 10 Nov 2022 09:49:06 +0800 (CST) Received: from kwepemm600004.china.huawei.com (7.193.23.242) by dggemv704-chm.china.huawei.com (10.3.19.47) 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 1/3] mailbox: pcc: rename platform interrupt bit macro name Date: Thu, 10 Nov 2022 09:50:32 +0800 Message-ID: <20221110015034.7943-2-lihuisong@huawei.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20221110015034.7943-1-lihuisong@huawei.com> References: <20221110015034.7943-1-lihuisong@huawei.com> 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 Currently, the name of platform interrupt bit macro, ACPI_PCCT_DOORBELL, is not very appropriate. The doorbell is generally considered as an action when send mailbox data. Actually, the macro value comes from Platform Interrupt in Platform Communications Channel Global Flags. If the bit is '1', it means that the platform is capable of generating an interrupt to indicate completion of a command. Signed-off-by: Huisong Li --- drivers/mailbox/pcc.c | 2 +- include/acpi/actbl2.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mailbox/pcc.c b/drivers/mailbox/pcc.c index 3c2bc0ca454c..7cee37dd3b73 100644 --- a/drivers/mailbox/pcc.c +++ b/drivers/mailbox/pcc.c @@ -665,7 +665,7 @@ static int pcc_mbox_probe(struct platform_device *pdev) (unsigned long) pcct_tbl + sizeof(struct acpi_table_pcct)); acpi_pcct_tbl = (struct acpi_table_pcct *) pcct_tbl; - if (acpi_pcct_tbl->flags & ACPI_PCCT_DOORBELL) + if (acpi_pcct_tbl->flags & BIT(ACPI_PCCT_FLAGS_PLAT_INTERRUPT_B)) pcc_mbox_ctrl->txdone_irq = true; for (i = 0; i < count; i++) { diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index 655102bc6d14..3840507fdc79 100644 --- a/include/acpi/actbl2.h +++ b/include/acpi/actbl2.h @@ -1810,7 +1810,7 @@ struct acpi_table_pcct { /* Values for Flags field above */ -#define ACPI_PCCT_DOORBELL 1 +#define ACPI_PCCT_FLAGS_PLAT_INTERRUPT_B 1 /* Values for subtable type in struct acpi_subtable_header */ -- 2.22.0