Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp43200rdd; Wed, 22 Nov 2023 09:00:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTeeBc4ZXl7cFO3NTMTZrRPqMflwtBZItb15SRFIKBDRYGDg4AKgXqW+2gnIm0l8WCtQMt X-Received: by 2002:a92:c90d:0:b0:35a:ff20:b295 with SMTP id t13-20020a92c90d000000b0035aff20b295mr3050793ilp.15.1700672424973; Wed, 22 Nov 2023 09:00:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700672424; cv=none; d=google.com; s=arc-20160816; b=Nwkh6tjlYan4TlurEkrBnyLs/YUPM+TcBT+HPOIjtO+5T5WoVL/z8lUgBEgTlvl2R7 cH9S8XrXwWNPlgg9Ge6ffw1XH7HX6gVXvVV1f5UMRA+8FAfOFQMmHcIy9/uSH7IqqZG4 8fEgiUBqlb4f1Ermyhxg927ERVopCOnoU4Pqi8ipF0G+C9TKy0eGvaN4v3ZhZH5MMO6L z4fDPk9vf+X1E7aPFnJ+sbnxKMLDWOpvXk1wzH/cz9TJSMC+c+aKGnKZJngXbvIQ1Z+g +ywuDA57NCoeuwgzQujn44s7RX502n8PpKlD9dXwpHLi9iZ0HbrRie9A1e1LwOzfK5cZ C+Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject; bh=LEt1syPzYG7+3Nex+t72Y4sWHGl/TAlYTAsLsINEk80=; fh=XVxuzW261ObcFKt6+FXoPD8Q+uGTo0jlfTIqmioiBQk=; b=xBhQzfpoQCIVs7eIDOHslMdDWfSfjIe420g51bhWhCwtNaIJ/lxdh3OgVkq13S25zp kxOq/6dkBoFlS9pKNubDHqFDu6U3RCFsmr03RhEq6sAXskbvs7FPe9dTPkxpM5uk5iv1 JedzgaBe4rZi1kQ9f7YmQjRC7/aMwhlm4+dS9PvJZ/Siq4GIhKHInULQvqMEvMsJp+tc N0Bzg5nEiWFoWRy2mEnxkitw1+tGVWniZTxKF8ZToS03W4FL6MX8qWskAhybMP8o7MY9 j9QKwXaRTR4Sb7nNXm1cu41hYV289zetqTHG3MCnIRQoYbEGpdot7koHGph5sMpl+9WZ en5Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b1-20020a6567c1000000b005ac86e7df6esi13044194pgs.363.2023.11.22.09.00.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 09:00:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8D8C18217064; Wed, 22 Nov 2023 09:00:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343840AbjKVRAK (ORCPT + 99 others); Wed, 22 Nov 2023 12:00:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232077AbjKVRAG (ORCPT ); Wed, 22 Nov 2023 12:00:06 -0500 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BD531A5; Wed, 22 Nov 2023 09:00:01 -0800 (PST) Received: from [192.168.1.103] (31.173.85.136) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Wed, 22 Nov 2023 19:59:53 +0300 Subject: Re: [PATCH 07/13] net: ravb: Rely on PM domain to enable gptp_clk To: Claudiu , , , , , , , , , , , , , CC: , , , Claudiu Beznea References: <20231120084606.4083194-1-claudiu.beznea.uj@bp.renesas.com> <20231120084606.4083194-8-claudiu.beznea.uj@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <0b88293b-c927-fa9d-fc99-2a60e5e60fe9@omp.ru> Date: Wed, 22 Nov 2023 19:59:52 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20231120084606.4083194-8-claudiu.beznea.uj@bp.renesas.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [31.173.85.136] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 6.0.0, Database issued on: 11/21/2023 23:48:29 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 181514 [Nov 21 2023] X-KSE-AntiSpam-Info: Version: 6.0.0.2 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 3 0.3.3 e5c6a18a9a9bff0226d530c5b790210c0bd117c8 X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {relay has no DNS name} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 31.173.85.136 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: {Found in DNSBL: 31.173.85.136 in (user) dbl.spamhaus.org} X-KSE-AntiSpam-Info: ApMailHostAddress: 31.173.85.136 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 59 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 11/21/2023 23:54:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 11/21/2023 8:06:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 09:00:23 -0800 (PST) On 11/20/23 11:46 AM, Claudiu wrote: > From: Claudiu Beznea > > ravb_rzv2m_hw_info::gptp_ref_clk is enabled only for RZ/V2M. RZ/V2M > is an ARM64 based device which selects power domains by default and > CONFIG_PM. The RZ/V2M Ethernet DT node has proper power-domain binding > available in device tree from the commit that added the Ethernet node. > (4872ca1f92b0 ("arm64: dts: renesas: r9a09g011: Add ethernet nodes")). > > Power domain support was available in rzg2l-cpg.c driver when the > Ethernet DT node has been enabled in RZ/V2M device tree. > (ef3c613ccd68 ("clk: renesas: Add CPG core wrapper for RZ/G2L SoC")). > > Thus remove the explicit clock enable for gptp_clk (and treat it as the > other clocks are treated) as it is not needed and removing it doesn't > break the ABI according to the above explanations. > > By removing the enable/disable operation from the driver we can add > runtime PM support (which operates on clocks) w/o the need to handle > the gptp_clk in Ethernet driver functions like ravb_runtime_nop(). > PM domain does all that is needed. > > Signed-off-by: Claudiu Beznea Reviewed-by: Sergey Shtylyov [...] MBR, Sergey