Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1865733rwb; Wed, 5 Oct 2022 06:04:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/f43akuxfc3bnovj5p70XMZednkEXvpCyc59fQBhYjZ9+xI43UA3H3EWF1npVPKZuCxtI X-Received: by 2002:a17:907:7d8b:b0:782:e9ed:88d7 with SMTP id oz11-20020a1709077d8b00b00782e9ed88d7mr23798633ejc.186.1664975097750; Wed, 05 Oct 2022 06:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664975097; cv=none; d=google.com; s=arc-20160816; b=a+c0wiZ9cJHikb53fIF+Pld/wV8SnC+ooswDFttNi2bbGV6YmTpW3KJjNL6Q/6tqzC XKaDsjGbmsEQjOLFmJ33S9kyFS//ZJLrAab4xRAcVjSqxZ0Vr/+ZyMzOrTXDeRX6Suor qJ1TvLhm9EPUaKnNU2j1QBP1Pzd6fS04eJfLcNQvN58bRKNf9vx+bSd9N73o++hquJjQ FCGKAQfEjTNfCaHdfohth1IUy/FyWu1oi1aPqyDFNrlyvkgsTLltnPdE6bMTvjMWUB/Z M276kmIizlZEsLYLqP8QHsR0fwYtaTAciWF/B7yUi1KLzko7y3Yzrv5B/GV4Flaht6Ef UV+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3hRHxdqHIje5FknTJ5KEacsVN7WFRHzy8hAOq67mToA=; b=c6Qk/jWXPilk3ICDV2mlkwqwOTclCc7nq7E4iQ+iXCR/HHHSwZAabqrfE+VIWkc7h6 rv9IAUzSfPy/MrJtwTsYnkWdVjzt3/SOZ9Sk3xVU9J9itDWGgiEh6Um8FgYfhYGDRe6F eQ7Geqe8gt3F94gB3BMSavp9i6DCY8NfxG1izyrdjfSVKcExLjQHfcxW+z6k98hNgFUl EzzlS6QMAipSVwveOEhBgzlGOwVmoGKUVQidoYpxXkTK78vuCvDOKojmxFMwxEJTue3u Ms0Reh24ViUesKcBl+tWD4xCYyX1r5EY/5Jj8PwUhEdAI9gKYRyjM5IuDz0xLbUpEIZc 0jSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RcvnrdSb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a170906844500b0077b2ad71224si13619903ejy.136.2022.10.05.06.04.21; Wed, 05 Oct 2022 06:04:57 -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=@gmail.com header.s=20210112 header.b=RcvnrdSb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229943AbiJEM4x (ORCPT + 99 others); Wed, 5 Oct 2022 08:56:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiJEM4w (ORCPT ); Wed, 5 Oct 2022 08:56:52 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D82645D13F; Wed, 5 Oct 2022 05:56:50 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id z23so18507310ejw.12; Wed, 05 Oct 2022 05:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=3hRHxdqHIje5FknTJ5KEacsVN7WFRHzy8hAOq67mToA=; b=RcvnrdSbxx7KFIR23+Xu5+IWBgvpRzBfeSBnL323zeMkA5PMr6EaMth8eGRHm2AQlI 50mgbAGAiEvnifvIPdoxWlJuGUj1AxhufP7YZX/qhAuF5LpfPgvyoGK/vtlB+INTksl9 dkEJhxR+smdS39b2nNyz89DQimi9pG9sPD9vyhp49JnQyS/J230WJtK7XL1ZLAU3OPsV Ve+bDgVtPvEsk+zWc1QYG1eFkmkJFncTEMFplRnyWFCDv5Eo7Aja6oTs1iGPRxog+3hE MJuD37nMbidVFyDGigr3l9JcxJW1UEXgOroBTMgmfATIWCLOFs1vAYSx3n+nT+k/6G0m VUzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=3hRHxdqHIje5FknTJ5KEacsVN7WFRHzy8hAOq67mToA=; b=RQJsg9gb/r3aebuO81dkeq390rx4UuH+hLQHifJ3LaiZIxNzM0c62IdgnQdbgAm+1O jz7+XsDRGMwJZRboGLQ11feYJKwuSqh0J/1qzHnC0GQpcwaa56Q8kPsrmPHLn+ZNoH3I E8iZYvQWp3lcvjPz1lmDKFIBEroz4paRf9vmNUs1jpW06LO66n6pR0UrZF1XEuaQ86IU Ln1TkLcWAXc94krVqtvzZlNnMsp8agIldqj+4Nm7HZ7Zgu4AwTikuPkDFxQUbw+d1hTo e84FhYz+F4/eJFlmzuSP2SB6TkcjzU8UTuk5CcOC5dEHEAgBvJkAJrk3izp96aYsSOdW yKXg== X-Gm-Message-State: ACrzQf2WlXPosIXWZm+lHogDUjMIzW76nkWFLDJxxHnw6B6W9XXbQWlb tgbE1q9zZoKSpwcbN+zfNmjG5VBVtE9VT4FFW3E= X-Received: by 2002:a17:907:2c41:b0:77d:8aed:cf7c with SMTP id hf1-20020a1709072c4100b0077d8aedcf7cmr23405273ejc.447.1664974609274; Wed, 05 Oct 2022 05:56:49 -0700 (PDT) MIME-Version: 1.0 References: <20220919133122.167794-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Wed, 5 Oct 2022 13:56:22 +0100 Message-ID: Subject: Re: [PATCH] clk: renesas: r9a07g044: Add WDT2 clocks to critical list To: Biju Das Cc: Geert Uytterhoeven , Michael Turquette , Stephen Boyd , "linux-renesas-soc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Prabhakar Mahadev Lad Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Hi Biju, On Wed, Oct 5, 2022 at 9:27 AM Biju Das wrote: > > Hi Geert and Prabhakar, > > > Subject: RE: [PATCH] clk: renesas: r9a07g044: Add WDT2 clocks to > > critical list > > > > Hi Prabhakar, > > > > > Subject: Re: [PATCH] clk: renesas: r9a07g044: Add WDT2 clocks to > > > critical list > > > > > > Hi Biju, > > > > > > On Mon, Sep 19, 2022 at 2:52 PM Biju Das > > > > > wrote: > > > > > > > > Hi Prabhakar, > > > > > > > > > Subject: Re: [PATCH] clk: renesas: r9a07g044: Add WDT2 clocks to > > > > > critical list > > > > > > > > > > Hi Biju, > > > > > > > > > > On Mon, Sep 19, 2022 at 2:35 PM Biju Das > > > > > > > > > > wrote: > > > > > > > > > > > > Hi Prabhakar, > > > > > > > > > > > > > Subject: [PATCH] clk: renesas: r9a07g044: Add WDT2 clocks to > > > > > > > critical list > > > > > > > > > > > > > > From: Lad Prabhakar > lad.rj@bp.renesas.com> > > > > > > > > > > > > > > Add the WDT2 clocks to r9a07g044_crit_mod_clks[] list as WDT > > > CH2 > > > > > is > > > > > > > specifically to check the operation of Cortex-M33 CPU on the > > > > > > > RZ/{G2L, G2LC, V2L} SoCs and we dont want to turn off the > > > clocks > > > > > of > > > > > > > WDT2 if it isn't enabled by Cortex-A55. > > > > > > > > > > > > > > This patch is in preparation to disable WDT CH2 from the > > > RZ/G2L > > > > > > > (alike > > > > > > > SoCs) DTS/I by default. > > > > > > > > > > > > > > Reported-by: Biju Das > > > > > > > Signed-off-by: Lad Prabhakar > > > > > > > > > > > > > > --- > > > > > > > drivers/clk/renesas/r9a07g044-cpg.c | 2 ++ > > > > > > > 1 file changed, 2 insertions(+) > > > > > > > > > > > > > > diff --git a/drivers/clk/renesas/r9a07g044-cpg.c > > > > > > > b/drivers/clk/renesas/r9a07g044-cpg.c > > > > > > > index 02a4fc41bb6e..cf9b1bd73792 100644 > > > > > > > --- a/drivers/clk/renesas/r9a07g044-cpg.c > > > > > > > +++ b/drivers/clk/renesas/r9a07g044-cpg.c > > > > > > > @@ -412,6 +412,8 @@ static const unsigned int > > > > > > > r9a07g044_crit_mod_clks[] __initconst = { > > > > > > > MOD_CLK_BASE + R9A07G044_GIC600_GICCLK, > > > > > > > MOD_CLK_BASE + R9A07G044_IA55_CLK, > > > > > > > MOD_CLK_BASE + R9A07G044_DMAC_ACLK, > > > > > > > + MOD_CLK_BASE + R9A07G044_WDT2_PCLK, > > > > > > > + MOD_CLK_BASE + R9A07G044_WDT2_CLK, > > > > > > > > > > > > Do we need to turn on this clock unnecessarily? > > > > > > > > > > > No, this is in preparation to disable WDT2 by default from > > > RZ/G2L{C} > > > > > DTS/I. > > > > > > > > But that will make WDT2 device is not enabled, but unnecessarily > > the > > > clk is on. > > > > > > > Agreed the clocks will be ON, but didnt we agree earlier for > > > r9a07g043-cpg.c? > > > > Yep, still we have a chance to conclude, whether we need to make this > > clk always on, if it is not enabled and there is no use case for wdt2 > > controlling from CA-55?? > > > > I got confirmation that that using WDT2 from CA55 is prohibited. > WDT2 is only for CM33. > > With CPG register, we can select whether CM33 to trigger CM33 cpu reset, or trigger system reset > when WDT2 overflows. > > If WDT2 is used by CA55, it may result in unexpected behaviour. > Thanks. > So we may need to take WDT2 entries from binding + dtsi + clock table?? > > Or > > Added it to critical clock list, to avoid changes in binding + dtsi + clock table > at the expense of turning on the WDT2 clk unnecessarily. > I'm in favour of option#1 except that we keep WDT2 entries in binding. Said that I'll leave Geert to decide on this. Cheers, Prabhakar