Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp28172rwl; Tue, 11 Apr 2023 13:53:34 -0700 (PDT) X-Google-Smtp-Source: AKy350bOKR0kQ1SXC9iy+AHLrvY2Ex4V6gojJPV4H1U/Eb1Eo9pupDf9Tj6bf09ZIsdJIjNSXfZ1 X-Received: by 2002:a17:906:d939:b0:94c:a08c:3be2 with SMTP id rn25-20020a170906d93900b0094ca08c3be2mr4642165ejb.63.1681246413801; Tue, 11 Apr 2023 13:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681246413; cv=none; d=google.com; s=arc-20160816; b=x4UQKTg416TeBdCAv4jUC9eZRAh4LHsb2ege49FzBf74sfOR8dmVDW8ftOKo24mAhG lfw1vraWDaxkUkWcmLHLdjywwgRiecPVomDn3pPAquuuteUn9F/NqGXWQFg9xtyN7LZN DK3CYFJeE9DTD35WPuSzsEC8yw7a7cneIWfqB+GT6gmGWoN6BbuUz+ybQyZhIoiS0VS8 ocWL8GEc1g3uK0TtojhbiU0lOuI+VwwSR2McOos5+usfOtCRZcIAM74u8FYxYlDWpP8K uuET5MokdNVIqegIkzrlU1m3MJnjlkPlffu20BzPOHViiZYc8WACpsTCtgWaLNgmZFUE 9ZJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=39z/rxLLQRwPfUSmb5my9I/+x0LYU5isKYeHrOqBshs=; b=BMOVdVqBPLrXNiZqDOd5vpUxh13hwGunEwguL3AVR/m9UKIoP0wGmz6A6zsaJ/O9Jm +b1SHg8goU819AroQY/f+b1Tr/+szS1hFedMZiiIQH0rVhHiFqFX3RTnlPovn9k5h14m s9+ohLPXhVuCbD7I0dSZANBaiGogzu4Wl0fJhJ6/nmdsUVyXT2chsN1Jjawjd6XdWXmD 37feiY8QZk9mQHY3/bVUB1QsYZTzHB44De3Kkwaxxtc5H+l2KR40HNtEfQrZTjr4jZNk +n4QdwbH/7SvAmPHYbW4boz1xnMvq2hJfiNj1dpCuRtGvOpucUuoMNCvjU4S9E9SGe+q uKOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kr7O+0tZ; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz40-20020a1709077da800b00933314f56fdsi9907859ejc.737.2023.04.11.13.53.09; Tue, 11 Apr 2023 13:53:33 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=Kr7O+0tZ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229755AbjDKUwm (ORCPT + 99 others); Tue, 11 Apr 2023 16:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229765AbjDKUwk (ORCPT ); Tue, 11 Apr 2023 16:52:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51267469E; Tue, 11 Apr 2023 13:52:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 304AC60FA0; Tue, 11 Apr 2023 20:52:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C453C433D2; Tue, 11 Apr 2023 20:52:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681246358; bh=Uw2/Byf4kuU8+07mE//heEnMrZgOuJnGJy2pZr8fhEM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kr7O+0tZrPjEw0m/XXSwGiAmEd0MbZYqCzhbwtcx7NCA01FSSC9pitekLgnICQxbi syANdkMkdw1wXFuiLU96iyGAW7TceQUdlVMG+sd7JcKbBTNlzFL6qMHoFB7n57Htw4 wo6n0LaAmGEh5FlbS8RBYEvlsa2iSUFr7THTM1mlNZdKnJKHStKO5tfowCNPf7Y4ug vl7TQstNxxUicCr9x2A7brZKNb+yKoIsxG4G/j+pVNvDnEQAJXLF7S2eKthRjnDNxV BicfhtBoLVOViQnorBBk7E5ByCJGD3PqOLQId1Ti6sSAHfvPEo1gg8xhllRLM0SpuH Py55B92WHjoNg== Date: Tue, 11 Apr 2023 21:52:33 +0100 From: Conor Dooley To: Changhuang Liang Cc: Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Paul Walmsley , Palmer Dabbelt , Albert Ou , Walker Chen , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v1 4/7] soc: starfive: Add pmu type operation Message-ID: <20230411-flavoring-sternness-a3b6cdee9fcb@spud> References: <20230411064743.273388-1-changhuang.liang@starfivetech.com> <20230411064743.273388-5-changhuang.liang@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9jTLzkgimlFJEOUu" Content-Disposition: inline In-Reply-To: <20230411064743.273388-5-changhuang.liang@starfivetech.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 --9jTLzkgimlFJEOUu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey Changhuang Liang, On Mon, Apr 10, 2023 at 11:47:40PM -0700, Changhuang Liang wrote: > Add pmu type, make a distinction between different PMU. Please write more detailed commit messages, thanks. >=20 > Signed-off-by: Changhuang Liang > --- > drivers/soc/starfive/jh71xx_pmu.c | 55 ++++++++++++++++++++++--------- > 1 file changed, 39 insertions(+), 16 deletions(-) >=20 > diff --git a/drivers/soc/starfive/jh71xx_pmu.c b/drivers/soc/starfive/jh7= 1xx_pmu.c > index 306218c83691..98f6849d61de 100644 > --- a/drivers/soc/starfive/jh71xx_pmu.c > +++ b/drivers/soc/starfive/jh71xx_pmu.c > @@ -45,6 +45,12 @@ > */ > #define JH71XX_PMU_TIMEOUT_US 100 > =20 > +/* pmu type */ Delete this comment, it's obvious. > +enum pmu_type { > + JH71XX_PMU_GENERAL, I'm really not sold on GENERAL as a name. Why not name these after the compatibles? > + JH71XX_PMU_DPHY, > +}; > + > struct jh71xx_domain_info { > const char * const name; > unsigned int flags; > @@ -54,6 +60,7 @@ struct jh71xx_domain_info { > struct jh71xx_pmu_match_data { > const struct jh71xx_domain_info *domain_info; > int num_domains; > + u8 pmu_type; This is an enum, not a u8? Thanks, Conor. --9jTLzkgimlFJEOUu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZDXIkQAKCRB4tDGHoIJi 0kByAP97IOiAFgI8nObj/x4ZMdTZk7xSaKs/qUUM2jPffnTMYQD+KVvBSO9lhyL7 NFR2FZ7jNsQX8DC9ZEqOFcs91Gip5A4= =lb9a -----END PGP SIGNATURE----- --9jTLzkgimlFJEOUu--