Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp568359lqb; Thu, 14 Mar 2024 22:45:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIsW9f1wMnCJm8SYSB4zFfH/HTLgsfZl6i4Di9AvzVSv9OEEq47mlI63vYjq+Uk/8XqLcyd3tDkQ6JVWnH2U9LoRXODPd8+M3dCroqoA== X-Google-Smtp-Source: AGHT+IFFFD0/xvoKgz39aB6EtEn/2E1wNg6liRczlEy2F+eHlf0xPziIYP9Wb5eZQKee8goS7JNr X-Received: by 2002:a05:620a:5dd9:b0:789:d0eb:3a57 with SMTP id xy25-20020a05620a5dd900b00789d0eb3a57mr3748834qkn.22.1710481543562; Thu, 14 Mar 2024 22:45:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710481543; cv=pass; d=google.com; s=arc-20160816; b=sbBfgSAVXSz2pxC28hkjcpgqpAggcRZQJ7V1Z8lj9F25iZR3uuHjAj/gWBxRh42jaW MrJ1Zz7VQ4bAiqV/3+TbFvSORiScND8bT1vj7OIqjm1F7G0knE+IOF6wLqqSiL5yDQz9 T7B9wH5HxohW4PYmUZDC3JkCbBgPapSGTQ0V5amQn1AeKcA/LapOIILT6Z9gbdMqTt7S LR7SLEbOnD5gB929GyGqHCuYlu4SUoxS/gpxIrcVaxX4dj8WDBFgesWc5F+Nq5mIFf7H /y6p7kJC8dpNTz1GF9mT6isuvl9gaIAtAg0bU+EFeigOKQTyu4qsvDPDTjLAHIqXhXbm ynjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=JpRnrAIn/rvD/vmAzL2Fo5N09hMac0TklJtSlC0gZ2I=; fh=JYXCzUgfNdMbW/kgeRlugBhRrO5nGxUt/haSSpPvzeY=; b=UPKMDX5b+HD+NF0SAqsKlGlAWY9lgJO05KlIyrQDKWo/HvPk3mJG+1vyI8KfBzz0an egTrgG3uJJ37ARgDQtItrqK4RGsgzipu5CwbcHxaxDt9++FwTTFtMXBSHESIdIp4GHYY 2gKBVI/mtYqpwqmJDbfGe+UdzrlZ91RX3dmMgIoDtm/Xc+ZXR7warYNAik7w74PeTFM+ yNg8o9d3z+RsAfZbD+YZ3Sy6Ny7jQeh53PN2jYEWOInyivdPCbss0v1G+hf7Fky8h8NI Ry6ZBlp3ZiAfLlo15hTWTweF/ZlzpZJ0VBvz8Ghv7fa3qgV2crnWT5m94OqweTk0226g 8qPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=Rb9qGSYm; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-104070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104070-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g17-20020ae9e111000000b0078829d939a2si2987176qkm.571.2024.03.14.22.45.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 22:45:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=Rb9qGSYm; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-104070-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104070-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0E5B51C21F9E for ; Fri, 15 Mar 2024 05:45:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 869621078B; Fri, 15 Mar 2024 05:45:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="Rb9qGSYm" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC8E5FC01 for ; Fri, 15 Mar 2024 05:45:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710481533; cv=none; b=kjMsA4seGUWZevaDuqjox7QeVvpNfduR1N9icNQnE1qzPQkJYWu/qQmWFq62MsZF+m6oJxIeD9YlWJRryS7AC9zOfs/SdpHU4wyXZ5d2axaQHg0D/ekjPYb/G3RdeVni0Rl7hRxWz4ATFmCelirF+FXtAdGkAtoEWFX4I2LmtQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710481533; c=relaxed/simple; bh=yX7VicevsNuvF9VXEJnE44eZDFitCUd+/l9FIxvXfkY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gb+k4mVH7Gu0ZocUcIcQTNjPB0+Nd4w7Q9A1soNMNv6i/JfIgxZcvZlxiJFs7TlhmQ6wAzpE3dy0pzDygGCKGXQDN9nsBR3tGChs++dG0h/31v/bn40T3CshX9ZpRiygE8/b6yi1aywjxdIgXxYuL/7FowoTMxrFriPBHp7VUtA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=Rb9qGSYm; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-413ef770363so13059905e9.2 for ; Thu, 14 Mar 2024 22:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1710481530; x=1711086330; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JpRnrAIn/rvD/vmAzL2Fo5N09hMac0TklJtSlC0gZ2I=; b=Rb9qGSYmUt/IjHSyU+lS0nXCqfswGGIro9ifG8KQK2QuKg2tvSD11rSHxnUTTEE8da ea/YUGTVX3xld1gfR0JiyCTYOoLgE1ZSFs/IFeT+XHY2HKj3vmcLadmlBO4I2xSsOTUH 87KMo8V6W5ZhEfKtmHMdTB12BNVWLdu8xW0k5SoixttJcOr/bZYPbS2pw7NnuFMXflZV Z6m6FGZBFaV6yu1zoOMrDhwzIzAeJd9CIWJYoh67E66VZSjMzSUWGmi9JqeInuaYsuNE WHLN+GCZfrmuqcyafFzrM2Ke2JpKheuRnLYHhNZIxve7un3QN+80hrw1K0zDUh0CL1d6 MNnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710481530; x=1711086330; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JpRnrAIn/rvD/vmAzL2Fo5N09hMac0TklJtSlC0gZ2I=; b=RnGD2j7U0nm1ml1ZNA+rj3Pdy6BcWg7imTlcy5GXhbCHupsBioou0Z27pUMhyDZSyA G/pilViwKq7oZ5k7KvNLngJgS/BXlvQgs/l1kSccsJnIFNfUj/MMqFZUqE3hUxTm69l8 QcxNRtvj31y00s4UAEv9jSnJZ0vSz97VthwEV71WZrQuGhoQ618uHBph4G3hRWdySI70 oBHFBDCfx4IZubbCi55jyoPsnOJ5LDR38m9361+iqOqswsxVR0Lu3YGFllP6gnSeTTym q0dA2gT8OYZqgjCLRhziKfb4yaPb9KK7UqDjOLOdPmFXMtfLdrlEv4IeQP1DeNbvJRcr nIug== X-Forwarded-Encrypted: i=1; AJvYcCXsKxoz9SG21zuoip2Z2lu1XExtCT9uun+nW8DSxl9BtkorQ5F7w64lN4AKw5DhFBUDEdSF9v3HiC+m0BuflyzrA4NJNhe4bwMXwf7P X-Gm-Message-State: AOJu0YymVRL4feYY/HrQL9ajXZH6uO3Ket2bP4kzpEVwnNiCDLJRStGo Fn0lfyuRhASJanM8iiGB0r53MBjShLhSz/E9YBTUq9p57bo4a5rECaoJ3tKGYWs= X-Received: by 2002:a05:600c:8509:b0:412:beee:36b3 with SMTP id gw9-20020a05600c850900b00412beee36b3mr1986307wmb.7.1710481530057; Thu, 14 Mar 2024 22:45:30 -0700 (PDT) Received: from [192.168.50.4] ([82.78.167.144]) by smtp.gmail.com with ESMTPSA id bd7-20020a05600c1f0700b00413f3ca39easm3687567wmb.5.2024.03.14.22.45.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Mar 2024 22:45:29 -0700 (PDT) Message-ID: Date: Fri, 15 Mar 2024 07:45:26 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 09/10] clk: renesas: r9a08g045: Add the RZG2L_PD_F_CONSOLE flag to scif0 PM domain Content-Language: en-US To: Geert Uytterhoeven Cc: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, magnus.damm@gmail.com, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea References: <20240307140728.190184-1-claudiu.beznea.uj@bp.renesas.com> <20240307140728.190184-10-claudiu.beznea.uj@bp.renesas.com> From: claudiu beznea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, Geert, On 14.03.2024 18:06, Geert Uytterhoeven wrote: > Hi Claudiu, > > On Thu, Mar 7, 2024 at 3:08 PM Claudiu wrote: >> From: Claudiu Beznea >> >> The RZG2L_PD_F_CONSOLE is used by the rzg2l-cpg driver to check if the >> SCIF domain need to be powered off in suspend. This is necessary when >> no_console_suspend is available in bootargs as we want to still see >> output on console, thus scif0 domain should remain powered on. >> >> Signed-off-by: Claudiu Beznea > > Thanks for your patch! > >> --- a/drivers/clk/renesas/r9a08g045-cpg.c >> +++ b/drivers/clk/renesas/r9a08g045-cpg.c >> @@ -293,7 +293,7 @@ static const struct rzg2l_cpg_pm_domain_init_data r9a08g045_pm_domains[] = { >> DEF_PD("scif0", R9A08G045_PD_SCIF0, >> DEF_REG_CONF(CPG_BUS_MCPU2_MSTOP, BIT(1)), >> DEF_REG_CONF(0, 0), >> - RZG2L_PD_F_NONE), >> + RZG2L_PD_F_CONSOLE), > > This is not really correct: if SCIF0 is used as the console depends on the > use case, i.e. on chosen/stdout-path. > So this flag should be set at run-time. You can check the power-domains > property of the node pointed to by of_stdout to find the PM Domain that > holds the console, cfr. drivers/pmdomain/renesas/rmobile-sysc.c. OK, I'll double check. Thank you, Claudiu Beznea > >> }; >> >> const struct rzg2l_cpg_info r9a08g045_cpg_info = { > > Gr{oetje,eeting}s, > > Geert >