Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1697869rwr; Thu, 20 Apr 2023 20:44:13 -0700 (PDT) X-Google-Smtp-Source: AKy350ZCq8uTuPBbSVHWQMHzXK97GAqAIkvfemapJUkuwl0U7ZlVjvQe3B8cpntFLxMbG+5ZBoLv X-Received: by 2002:a17:90a:cb88:b0:246:8b47:3d5b with SMTP id a8-20020a17090acb8800b002468b473d5bmr3561664pju.18.1682048653620; Thu, 20 Apr 2023 20:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682048653; cv=none; d=google.com; s=arc-20160816; b=HQFTiHc17LXeRGJdZFF475oKqSid8+UAHZ6jDS8tTx49t5iwTNI/kXvcjXk1xAAa2e nAGOwdwj5T8qVQwoL+/+74G9Fa+yqVrUuwM2gYEbf9O4PYlZBP2NsSN64y/EtUYPCVKp 9Pj2jacxOb8hmLPYlOdBlVIwKVpkxf+R8YMpiaMYaClSAxACssyn0K7prmz6kJ7/pwxW uA4bGxlNsdz1PhIRotU56vbccg8vaXuO7k6kM9TRCtLN0+L/R+hJUorhV36ihln+NgZL T78OyEw10nDiloei5UYFFfTpSvzeJD9wCJxcTs4sJOAcx8+/GrmGLMTmPYZ40RcWyKLb yJPg== 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=eNb90kgqscBdngT4AX7hIZX6PfAeeFhVwViYxJrT/jw=; b=tFdQx4F3sT47zWPJ3+Gg4Kdn/7ei04E9HE+yMvqoiKRzFKKH0UNCZ78eb4mUup4dA1 HXNFsp8U3dahwHzOa4HsnTVBym/K/rOL8RXqSSfN+bus9AM7Xiy8Wahr6HMrneJ0CRai ldoqvnXzVC6rFAGnOi/0d6pZVj15Tb/Z1StD1DNDI3TjPn6Ytf+glNyK8jDAOqs7EkFF EA3ZUS/Gxot4jNgNLdH8Ir5Aw5WAQLX18deShEYPGbsj9+QrYp5+OwIfkBxAyow/24bx zSZKi9D/h0CzhiKs3av2HEfzZunmzvhnzjrpV4GrNf0d8Cgcxdf2jploZpGtCMWfiPUw f2jA== 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 ij23-20020a170902ab5700b001a7ffacc29fsi3383222plb.39.2023.04.20.20.43.58; Thu, 20 Apr 2023 20:44:13 -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; 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 S231208AbjDUD2I (ORCPT + 99 others); Thu, 20 Apr 2023 23:28:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbjDUD2C (ORCPT ); Thu, 20 Apr 2023 23:28:02 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF8C91FCE; Thu, 20 Apr 2023 20:28:00 -0700 (PDT) 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 2B5D424E197; Fri, 21 Apr 2023 11:27:59 +0800 (CST) Received: from EXMBX162.cuchost.com (172.16.6.72) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 21 Apr 2023 11:27:55 +0800 Received: from [192.168.125.106] (113.72.144.253) by EXMBX162.cuchost.com (172.16.6.72) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 21 Apr 2023 11:27:54 +0800 Message-ID: <8ce740ac-54e9-bf31-1e03-2f3e0e9ef63c@starfivetech.com> Date: Fri, 21 Apr 2023 11:27:52 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [RESEND v2 4/6] soc: starfive: Extract JH7110 pmu private operations Content-Language: en-US To: Conor Dooley CC: Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Paul Walmsley , Palmer Dabbelt , Albert Ou , Walker Chen , Hal Feng , , , References: <20230419035646.43702-1-changhuang.liang@starfivetech.com> <20230419035646.43702-5-changhuang.liang@starfivetech.com> <20230419-atypical-unbounded-99cbbff3091a@spud> From: Changhuang Liang In-Reply-To: <20230419-atypical-unbounded-99cbbff3091a@spud> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [113.72.144.253] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX162.cuchost.com (172.16.6.72) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 2023/4/20 1:47, Conor Dooley wrote: > On Tue, Apr 18, 2023 at 08:56:44PM -0700, Changhuang Liang wrote: >> Move JH7110 private operation into private data of compatible. >> Convenient to expand different compatible. > > I prefer how the code looks in v2, thanks. > However, just as in the prior patch, "Convenient to expand different > compatible" isn't really a justification - specifically, supporting the > power domain controller serving the dphy is your motivation here. The > important difference being that it uses a regmap from a syscon and has > no interrupts nor the encourage features. > So should I expand the commit message which called "in order to add the aon power domain" although the patch is applied behind current patch. > Although, given the only real similarity the code driving each of the > PMUs is the variable names, I guess you could argue that this driver > should be left alone and the "aon dphy" should be a different driver > altogether. > I have tried independent this aon pmu, but it code is very similar to the original pmu, so I think they can put together, reduce linux kernel bloat. > I don't have a strong opinion though & if it's fine with Walker and > noone else objects, it's fine with me...