Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4024007rwb; Mon, 21 Nov 2022 02:46:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf6FHBtCtVk8zblRIfb68o3eli80W/rxEPGY2jYOrrPRisu5PkB08CGSEwCybkO+Ym+1rZjA X-Received: by 2002:a17:907:b014:b0:7b4:86be:f3e3 with SMTP id fu20-20020a170907b01400b007b486bef3e3mr7188773ejc.741.1669027580930; Mon, 21 Nov 2022 02:46:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669027580; cv=none; d=google.com; s=arc-20160816; b=dFiXgNYdju9pgllzYjXcIhjBBi3jLnBMr2tODMuW8PNWRLvqZ47JAfTYLJhu2JvA4/ alDmt7qSFKbG/MD7ovLK+5c6qNLLfGGzoSze/dFVmbdNGMttXoFI6yF0M6g/nbwEVHH+ D5VtNUK51+54YNctpFLrkOViqvl9PVk+3fVIcBN9kQ2CvwO/K20RDiv/nRfcwpGPh3cE WE0eqJ6x/shroFvLjaVvqTF8vK6nq3qhFUesukZzs04YXkoBFx8EMC2wKN0x+4F+oZOW K6dCZiP4gqj04CEyqtjP2iWM916uBrsHycy+MV0uKBaR4Dlfc+BLw+oPKdBV/teDZ/gm qGww== 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:dkim-signature; bh=huSdTSSPuNXnoZS/eHmsGnIE6FjPj9B88zrBs7fiZfk=; b=Yw+6NBiNAPDOAx8syYLpZLsvcBjecXk+FZuzbHM+IyKvqy5bdf/YK/1y7FvqneVF3Z OS8O6KCfk1Bm3XIB36ofSI7STA/LHEbctwGitHymwcTmaWdeEOdLBHO5G4N6h2A3sKG5 BnaytlvFtt2sFXO1UL9m8YETgd3nVCbdXTeYh5PL6BgQSa6YrKS8zQrnlkajm6f65S8Y pPIThn7aFZBTC//1Yt8BtJls/jS+aJPwspdvaueEMdjzCqxOPy0TO/p0/X8j1XqacsuH 34Gwimv98N7J6tjF8QJ/r6XLQA4g33NZ/MJgrkD7aYyyXGXA2i74kzDpmDCg7MdKmyBz fhsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NeMpWLpw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a056402520700b00468f3073005si9727934edd.97.2022.11.21.02.45.58; Mon, 21 Nov 2022 02:46:20 -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; dkim=pass header.i=@linaro.org header.s=google header.b=NeMpWLpw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230133AbiKUKOT (ORCPT + 91 others); Mon, 21 Nov 2022 05:14:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229810AbiKUKOQ (ORCPT ); Mon, 21 Nov 2022 05:14:16 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51C51CE4 for ; Mon, 21 Nov 2022 02:14:15 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id r12so18125686lfp.1 for ; Mon, 21 Nov 2022 02:14:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=huSdTSSPuNXnoZS/eHmsGnIE6FjPj9B88zrBs7fiZfk=; b=NeMpWLpw/VGYxrbuzW7jvw2Zj1Nfi3gDv98L2ZjOnbqAeGJjM8wn+VJxEVNkiRugSd OQ7Tmu6pMhD/aUFllBlGcL+AlFkZ45BPNURu7FAQQ2MCIIC6VLvPz2ip9wCP1YapZhd3 o6/YUX4wwAo5UHnvEcz/ghquvvCy/58s5MJBKZHOl7FQxePuAbLZdDcePyjqv3XtvDX1 oAajxBuaAmGLKZwomr/1bC1HqGit+Bs6twk6fbyyUFSBKry5hWiZao44wSNXy6tcSZzl EClSd9wu0hI94hhcaB+83s769n+Xk03DjJ/vOhGiQ5XZncTbY4PEWvTPBwgcXqFSqtQq xyzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=huSdTSSPuNXnoZS/eHmsGnIE6FjPj9B88zrBs7fiZfk=; b=1iH8VRSIhxJERhOS8uC3CtB/RO1p5uaBb05F0zYh21pJWiZY0X7QbY5VjbtkrcMXnC SS/PgtJawIkmpjBwIonKnVY7CJ3jf9OthUt7U6Gc940gcOtM+xYOy91tmfDvNCYKhkvA gpNyMbOA9fU7DQoy2MSPwYo8SEQ7whEi5r8oKWITL4mc0PNXTb/OGmp4z1Wr4EnRYDDR 1AgtMABvO9OGXfvqib3o5XegqQkmuFmKJ+xh7JWTC4Txl+PfXX5hcsOL+QmE9xQhgUpi n/ssqOrEHEU/1yMXcOXyke2O7D8gDmV+dZrV6YNM4ufQS6QVPtwMosUQpHKf8W6LFWIp JzLg== X-Gm-Message-State: ANoB5pl+JerLyuGcnqZJ6Bx53rD3nFyFRfUG0aQntUSZheKTjLtexlZI YtSnDvHOtevu3XyaH54y/Dxw4Q== X-Received: by 2002:a05:6512:25a8:b0:4aa:a6f8:f042 with SMTP id bf40-20020a05651225a800b004aaa6f8f042mr5296215lfb.405.1669025653696; Mon, 21 Nov 2022 02:14:13 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id u15-20020a056512128f00b004a2ae643b99sm1965407lfs.170.2022.11.21.02.14.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Nov 2022 02:14:13 -0800 (PST) Message-ID: <15a860d8-d134-5eab-1635-74622421c5d7@linaro.org> Date: Mon, 21 Nov 2022 11:14:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v1 3/4] soc: starfive: Add StarFive JH71XX pmu driver Content-Language: en-US To: Walker Chen , linux-riscv@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org References: <20221118133216.17037-1-walker.chen@starfivetech.com> <20221118133216.17037-4-walker.chen@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <20221118133216.17037-4-walker.chen@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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. Best regards, Krzysztof