Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1859167rdb; Wed, 31 Jan 2024 11:11:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcMK8JBS9Wpj0PXgDmtWljyk7+Tgm4QQxD3cxBQYFPoePhKl6kT5ED3U8YYi2KJ9iHZBGE X-Received: by 2002:a05:6e02:1d8a:b0:363:80af:6ead with SMTP id h10-20020a056e021d8a00b0036380af6eadmr3071789ila.1.1706728293715; Wed, 31 Jan 2024 11:11:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706728293; cv=pass; d=google.com; s=arc-20160816; b=wYmAOZv3ELappguV4U1okMA29QDaLVxxDyWppgzr6t/TI+CM/Xy/mXg1I3nBiPZobP Kxw/jl3Kg9IxRK/Veb9T8Fs6s3HYB1DVMRDu2Lrg/jHmXWnZL5BQ5AxjqoL63hN3NIg4 KNgqrjiNPU/VktQikog4N3Q0/WbOU96CRRjqnZiLoQVjBzuYa1DrXiVXRCcJK6DUmAKg JCKJfa/feiKXgw98Q7H0AzS8ImfdOjavLaXQxZvIs3OCcpmwijCBwhvEqX+Q9ym4mpMz xSTYXsyZTx2TkghDr016SlA714x27G1kMoBHTjPZV36tzgLdxICweC/Ck/dXR6Lyd7ad CsGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=tqPCnlNtrN+8KrR60oWZHznK0hGR1MMCjzMTTEbNRmg=; fh=owQkOceD8L0nS/qhWDGCgZpUQ2MH4lEUIKvJ3RwxXao=; b=PV00YjpyIU/q1GujbTtCj/ba5VhirHZLlrCy8OlJnhsJBorvgDw8XtKf82VjE22nY1 dwrHrzsrXfub60834FPQjZzhGJikYL0cnoE21lTlYY68Prbt5ZjHLtFywh171ZO0IaKZ u0kMa2UUqV8rcmXKsTVOqRC6Qon+RKpAeW3QoHHcE7dNZwcbbh+nNbq1lmiMbnDUpxv+ tcZh0ebDN1DWTHq1P+UsadjU7HRK4CnU3jWqBi6U8tstuS+t5RuTuj5mNON6rOm3lmgo twB1U1cgf+pfElAfdhYLJMp9LPi3P+HTUcLChJ2b07IdWMerK8QecGcOWY4fPq0p2zjf A/8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-46975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46975-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCVcipSc92Zn0M7MvPdiXiNFQcXy4wSwFQ/RhRZ+UVaiwU9FC7GqDI+VReaTHcC7qTSw9R6Sq9QwheOWvlGabelNI7sN4XdTcHIfDkd4Wg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w184-20020a6382c1000000b005dab535facasi3444643pgd.73.2024.01.31.11.11.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 11:11:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-46975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46975-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E1AA3B29C13 for ; Wed, 31 Jan 2024 18:39:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CA3420DE9; Wed, 31 Jan 2024 18:39:10 +0000 (UTC) Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F047120DE8; Wed, 31 Jan 2024 18:39:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.154.21.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706726349; cv=none; b=cW9yobSF0Rs+V9NhmZ7uBlthuuuUWhjHkrihLcYQUNZlnPM5uJLPQuNIYtn4AqHkL5VUcD7iKvdsESVL3lm+2hYHwViRiSPmtnS1by1T5C7PEMjJy018OkJWeTGDMzQbplCT/HuQs//GPmr2grZm5jx12zaQ61W02+RNhJ32RVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706726349; c=relaxed/simple; bh=rXcfpzQ9QFkg2aC41Y07F7sa4N5JX3LOM+ObY03VVYY=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=t5AQ7QXiyHOi+JPiCnP7c5u+8/LcE77eThpVK1wY52voybOrjeLtniY5+p8fKWhngf4hZMYrKq2udwcYeaxNF9RewieCSyMX6lIsybTuHj1L5qIKIEr8TCP7x53R7Rq9Reg/Rf8VFfNk7RqyvXS/74I23ROULvfS0FTamla0zic= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru; spf=pass smtp.mailfrom=omp.ru; arc=none smtp.client-ip=90.154.21.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=omp.ru Received: from [192.168.1.105] (31.173.81.146) 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, 31 Jan 2024 21:38:51 +0300 Subject: Re: [PATCH net-next v5 07/15] net: ravb: Move reference clock enable/disable on runtime PM APIs To: Claudiu , , , , , , , CC: , , , Claudiu Beznea References: <20240131084133.1671440-1-claudiu.beznea.uj@bp.renesas.com> <20240131084133.1671440-8-claudiu.beznea.uj@bp.renesas.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <518b6105-b09a-bd07-e6b1-026f73366a35@omp.ru> Date: Wed, 31 Jan 2024 21:38:50 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240131084133.1671440-8-claudiu.beznea.uj@bp.renesas.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit 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.1.0, Database issued on: 01/31/2024 18:18:05 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 59 X-KSE-AntiSpam-Info: Lua profiles 183089 [Jan 31 2024] X-KSE-AntiSpam-Info: Version: 6.1.0.3 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 7 0.3.7 6d6bf5bd8eea7373134f756a2fd73e9456bb7d1a 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.81.146 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: omp.ru:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2 X-KSE-AntiSpam-Info: ApMailHostAddress: 31.173.81.146 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: 01/31/2024 18:23:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 1/31/2024 10:54:00 AM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit On 1/31/24 11:41 AM, Claudiu wrote: > From: Claudiu Beznea > > Reference clock could be or not be part of the power domain. If it is part > of the power domain, the power domain takes care of properly setting it. In > case it is not part of the power domain and full runtime PM support is > available in driver the clock will not be propertly disabled/enabled at > runtime. For this, keep the prepare/unprepare operations in the driver's > probe()/remove() functions and move the enable/disable in runtime PM > functions. > > By doing this, the previous ravb_runtime_nop() function was renamed > ravb_runtime_suspend() and the comment was removed. A proper runtime PM > resume function was added (ravb_runtime_resume()). The current driver > still don't need to make any register settings on runtime suspend/resume > (as expressed in the removed comment) because, currently, > pm_runtime_put_sync() is called on the driver remove function. This will be > changed in the next commits (that extends the runtime PM support) such > that proper register settings (along with runtime resume/suspend) will be > done on ravb_open()/ravb_close(). > > Along with it, the other clock request operations were moved close to > reference clock request and prepare to have all the clock requests > specific code grouped together. > > Signed-off-by: Claudiu Beznea Reviewed-by: Sergey Shtylyov [...] MBR, Sergey