Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14240873rwb; Sun, 27 Nov 2022 20:42:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf5tRzec1FKNQuJpHSSGtOQpt5kz1BZoOTVKQDZ2KJh5+sCKmrPzC7HsZ8qt9W4H5tVo7VFC X-Received: by 2002:a17:90a:9c07:b0:218:9f75:deae with SMTP id h7-20020a17090a9c0700b002189f75deaemr41233575pjp.58.1669610532555; Sun, 27 Nov 2022 20:42:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669610532; cv=none; d=google.com; s=arc-20160816; b=EhUNI0zfNjmnX4Zxxk66CjLLcZPliQDafNyyxLOKxbqfvlVz2UQmUy1gKgY6TvEj4R InNoJ5TXfKx39b+i+liDUNJgY+eddB/OMUXdz7kg/+OkxnUfnbV09hCZZ1jdSSa5vD9A Jng2e+kcIqpv0BxuGgYOs2nR4lB3IxtOsN9W4/10BR2souQJeV555aRdzuHzF/AJjzJs A49xn1hlupZEAbNPz0m+dfU1rBgz9l2JJgIDDcQm+JdZNnaGzd9GqDyXeoJ/b6z825QD Wmac94hucf81kOWw5mzuFL6GqPrHW1l5hgjwJ0lXBIYgCG3rBKlpXMcRxTQBlRcHkmyk PJgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=5K393CK71oNmYxec1o2TOZvXh2zGZeO1QFyM4Sluq6c=; b=M0zhybvHnB3L4LB39h51kEbF6Z3rd/AGR6P8hjiApqcfzyn/Q25pAKQZHOTQXHKfea dp1llp+Hoi9NeX1Py1R5xa4lf4Iz8YljLbgX2VZ6yD4tJ9eFmHdUONSweX/3V1Cm9n5o /Ntajj1XCyz7xYK7sdgny2ZHQW0wTpSsoYNCUF1hxb69nX9kBwX1L0VW3LBFofig4pDy RHcZcpTvt++iG1BLh/4wF27lfS6bO2JcU3OrkWVkEY8XxBe6u5R5xreauJDfSclQBoyR DC4QW3wCSt6T3XEDDHlabiICbeICogS1EtynbJqkmf9Brg7ujyYlaThQMj3iskA5l5Sk vGmA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m15-20020a63580f000000b0043c0b452d3esi10823248pgb.292.2022.11.27.20.42.00; Sun, 27 Nov 2022 20:42:12 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbiK1DJb (ORCPT + 84 others); Sun, 27 Nov 2022 22:09:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbiK1DJ3 (ORCPT ); Sun, 27 Nov 2022 22:09:29 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CFF6DF33; Sun, 27 Nov 2022 19:09:24 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id DC2C024E1D3; Mon, 28 Nov 2022 11:09:21 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 28 Nov 2022 11:09:21 +0800 Received: from [192.168.125.96] (183.27.97.81) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 28 Nov 2022 11:09:21 +0800 Message-ID: Date: Mon, 28 Nov 2022 11:09:21 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH v1 3/4] soc: starfive: Add StarFive JH71XX pmu driver Content-Language: en-US To: Krzysztof Kozlowski , , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , References: <20221118133216.17037-1-walker.chen@starfivetech.com> <20221118133216.17037-4-walker.chen@starfivetech.com> <15a860d8-d134-5eab-1635-74622421c5d7@linaro.org> From: Walker Chen In-Reply-To: <15a860d8-d134-5eab-1635-74622421c5d7@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [183.27.97.81] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 On 2022/11/21 18:14, Krzysztof Kozlowski wrote: > On 18/11/2022 14:32, Walker Chen wrote: >> Add generic power domain driver for the StarFive JH71XX SoC. >> >> Signed-off-by: Walker Chen > > Thank you for your patch. There is something to discuss/improve. > >> + >> +MODULE_AUTHOR("Walker Chen "); >> +MODULE_DESCRIPTION("StarFive JH71XX Power Domain Driver"); >> +MODULE_LICENSE("GPL"); >> diff --git a/include/soc/starfive/pm_domains.h b/include/soc/starfive/pm_domains.h >> new file mode 100644 >> index 000000000000..a20e28e9baf3 >> --- /dev/null >> +++ b/include/soc/starfive/pm_domains.h >> @@ -0,0 +1,15 @@ >> +/* SPDX-License-Identifier: GPL-2.0 */ >> +/* >> + * Copyright (C) 2022 StarFive Technology Co., Ltd. >> + * Author: Walker Chen >> + */ >> + >> +#ifndef __SOC_STARFIVE_PMDOMAINS_H__ >> +#define __SOC_STARFIVE_PMDOMAINS_H__ >> + >> +#include >> + >> +void starfive_pmu_hw_event_turn_on(u32 mask); >> +void starfive_pmu_hw_event_turn_off(u32 mask); > > These are not used outside of driver. Drop entire header file. > Yes, these two exported functions will be drop in the next version of patches. Best Regards, Walker Chen