Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp67064rdd; Wed, 22 Nov 2023 09:31:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEZsBr+kSh9kIVjTmqPDV2T34rHjkIS10tzRoi+5pY4vs9MrsYtSN/4/Qo9eVlhPFm5+28 X-Received: by 2002:a9d:74c1:0:b0:6d6:552e:13db with SMTP id a1-20020a9d74c1000000b006d6552e13dbmr3681017otl.23.1700674305671; Wed, 22 Nov 2023 09:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700674305; cv=none; d=google.com; s=arc-20160816; b=HfvalxY4HzHTMtSJ8K9tkQ3wf4cUjT7yI/0rr1I9TaMPCMt0epqCwa3P36pFi1ob/h +tw0wK99FqzAwDZKyeDbNfyfU6gGiKR4tpbNuLEkNPVU8Ufm8ZIa8OcB0vtOFCxWIo9N OPVAjud8wDAxh8ixZRl8owO6KSRxiRpepLbH2/Bx9lyTF1f4OJtCmKbNUivIKR/2qldB gFn1lt4moKtjKBSdkFFUJAF1/95pT3hkO6PSJbs9rPwhOvXdyGmSL+iZxZxCMhGXp2gn 9IL1mltylGvDzurwBiVLDXxCWiPNvL1C18F7o/qBVfnC2gpvso/ZmXSSOxmrMdenttPw R2zA== 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=2yibiEKR/QhqHTGZZegDl2P6WKeJYdg9GxYKxiFdDXE=; fh=XVxuzW261ObcFKt6+FXoPD8Q+uGTo0jlfTIqmioiBQk=; b=ibTvOFnu2t11RLTAK9Pui01y+YfbaqF4dmi5Lc4+Ske+EkQr47R/hcBny2d63CLBqi BvrgXpBKEEvIpKE8FXpI+do7cKGLRFIb3UdRWEpxChd71xnufcGjlxtvV1kTs4EuY/cP ptMd2PMzPgZkVIM7lwOORw6dwm2APyLinjNXacQfLw6xMvsNPqWq7xO8MNNCbF4eXoKE kLDCf77KtiHtzc9zyuG7i4GpokpJm801GEgzn6Hvg4KlxqMweKKsbOdVsV7KhEf4A09y rX0IfXvbfcZfZyX4RXkiIJR6OUJ8ZBz46KFErgvh4xel/Kf0YpyUL9xKY1vfVmFQBJJX xdCQ== 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:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h14-20020a9d6a4e000000b006d7ebdd4c50si39955otn.124.2023.11.22.09.31.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 09:31:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id CAA85808BD02; Wed, 22 Nov 2023 09:31:42 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344205AbjKVRba (ORCPT + 99 others); Wed, 22 Nov 2023 12:31:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344075AbjKVRb2 (ORCPT ); Wed, 22 Nov 2023 12:31:28 -0500 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6909C1B1; Wed, 22 Nov 2023 09:31:24 -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 20:31:15 +0300 Subject: Re: [PATCH 08/13] net: ravb: Rely on PM domain to enable refclk To: Claudiu , , , , , , , , , , , , , CC: , , , Claudiu Beznea References: <20231120084606.4083194-1-claudiu.beznea.uj@bp.renesas.com> <20231120084606.4083194-9-claudiu.beznea.uj@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <508ff1f5-f216-f4e7-59ff-4c6ce0aad6a7@omp.ru> Date: Wed, 22 Nov 2023 20:31:14 +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-9-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: 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=-2.4 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 09:31:43 -0800 (PST) On 11/20/23 11:46 AM, Claudiu wrote: > From: Claudiu Beznea > > For RZ/G3S and RZ/G2L SoCs the Ethernet's reference clock is part of the > Ethernet's power domain. It is controlled though CPG driver that is > providing the support for power domain that Ethernet belongs. Thus, > to be able to implement runtime PM (at least for RZ/G3S at the moment) > w/o the need to add clock enable/disable specific calls in runtime PM > ops of ravb driver and interfere with other IP specific implementations, > add a new variable to struct_hw_info and enable the reference clock > based on the value of this variable (the variable states if reference > clock is part of the Ethernet's power domain). > > Signed-off-by: Claudiu Beznea Reviewed-by: Sergey Shtylyov [...] MBR, Sergey