From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.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 8B3521A23A6 for ; Tue, 26 Aug 2025 11:02:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756206125; cv=none; b=HahHgvxhH9aEoGGfkxftIQqgMA6M7An/7uGum28P3ZsPHVpoknliMi4h4XLTm0BpkXikQJrqAiRREHGXN3ByAvPPhl2c8JlJGjL7h9fne9BLiAYWMZIV37iqC6j7K9M9IQnMXzfMaPFVMtjpinU8Bz7snWHXXvAmQsurIU35TTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756206125; c=relaxed/simple; bh=LH4NaFwMH564ZNn49848uCu1K3fc78EyKP3IwLdanJ0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MB5R7CnD1ps159fBfvV9jovVdzsDECHucn8myoT5T4E7qBeSEO7ybdIK7QrFU+c0Z8WZ6ZIAi2CTseq3it1bxti/MAT0xlOuPnkoc9mjNw8rP7Kxjsvo5qyhglM0IhhNpwF55HNVYk3oFptVG38kmypcqbt3PdRd27ZwtdPspWE= 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=j9uWEU3v; arc=none smtp.client-ip=209.85.218.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="j9uWEU3v" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-afcb78f5df4so926047166b.1 for ; Tue, 26 Aug 2025 04:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1756206122; x=1756810922; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=S9pMIy2ceXu0U+iaZPJ+CBfNzoY8Ci+2h3RmbLWXEeI=; b=j9uWEU3vipQAR6vjvIopP4JMg7TsCX9RdJaVvfCZD9plbft3Tg26ajPPTGA7jsD9Fy 6f/QIv7ZrZw4I9JaolerLLb4/S3D5jHkAHoARoQbcv9JroOyrRB2pZDWIp+eY4C8ee2z KoH/V7wsgt/8sNpB7zvP2rwx77Cqps8K4VHS8rpNhIYHzYiHohcsSBx9MOQ8/d2zx5z1 x5E2AnjNVbY6XVta949W/rZHPf+I35yIPvk49i5ipMSXew7TzPaH/X0JwkgT7xclQkfX MB3CpjxZIhAZNJwet/fr6rImqgEbp8npL4TUDghDCv/z8BWrSSTRJroWX9/80dHUit3d Z5Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756206122; x=1756810922; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=S9pMIy2ceXu0U+iaZPJ+CBfNzoY8Ci+2h3RmbLWXEeI=; b=uaHm50iKNQXIktLfqu0WT3l+uZCacNu3Xqb3tXe1ajS2plWwyqShvcHamyadVL6iaw IGnznq26GD07+5lAe2IdlFRGKfQc8FkcGRJG0eosTfBjLfTkfBWbnZrtwN/bTl7MswEl hf8QYINMhBh2PTc2vY0SXqeS09QCIyBz3POmv7ZpK+DHpuSBYrBq5L4iIYPZ71LsOkAQ nbcs1QFErfblBXZAtOTAbdE6kALRtlU7Vi+vijsTOetFrc3aMs4u8q9qW2bY4BneRjb3 cxUPDi4zNhLOVkeb+7qhNdpBQdjoWUCiOMR9YpoJPWCMak3ojO6La9L0eGuNJfEUKqnu IpIw== X-Forwarded-Encrypted: i=1; AJvYcCWlvhehaCE6LobNea6j2WEAs6Omre7nGu8lfMbwOcwmOgpMmkaw0rwi5GVcKN0ST2A6QrMYZceeF81lIic=@vger.kernel.org X-Gm-Message-State: AOJu0YxTf05cj3ijWwu99MAx3ujCucstDqdhvh0i5YllU9ywEITfX3y4 HJW1NTbu06n/Fy7UQ9EKXjZBuTbcYNLl3JbCyF19+GBUHVwPItlAa9UZdU/5N/Uk/CQ= X-Gm-Gg: ASbGncuXTpeHqro/1tgrjFWTUVuxRFIKEWUFAjHCtSpLPET77qXzFKIRi0Ce+uZVj1G bXQsZTO/CIUxidjANPlHSP1d+B3t7HpSspUxR62igwBsLqeFtwLoxKnaMBaY6zTDmrNNqF1hPk3 NpDAqTCtbZSykjSpST7GcXK4GxYywpBlmXmRYL8ay9bChqdHI8FWrwraX8oWF3/t+XtB5Ep6fYV Cr/vbEKvh3RlfnSoROcRmYAYmar1DP83L2c8Zk1vLXiVFNLsOcr5wPfynE0pA4gzgVbX601brj7 bF1KeVAtjv+3KFOQ6ZUtcJUCiaZZ/yfY8yYWbvpdOJayyJsXHlxSxQSTRQwD/saJ1ATsW/H2y8p HvGyJPabwCVjMPZak2z21X8I0zwzwTUTDLvdNLkMWse6x0H5h1oFQbBHYArtKZ6pPzvP+ULxd16 jGvuU/MEFJziNr X-Google-Smtp-Source: AGHT+IFsEcWIMVxL9iC4gvBj9YbqBmSOY+YYxvhjHWiMWtUrH8NxDZ6rdnSthTAZuxEPdrp5IvpPaA== X-Received: by 2002:a17:907:7249:b0:ae3:7058:7b48 with SMTP id a640c23a62f3a-afe28fdfcb1mr1617412266b.25.1756206121373; Tue, 26 Aug 2025 04:02:01 -0700 (PDT) Received: from ?IPV6:2a02:2f04:6103:4200:f276:8e0c:6e17:2570? ([2a02:2f04:6103:4200:f276:8e0c:6e17:2570]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-afe7aad5d61sm447908866b.105.2025.08.26.04.01.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Aug 2025 04:02:00 -0700 (PDT) Message-ID: <0d71269f-1c78-4732-8235-5640bf340d00@tuxon.dev> Date: Tue, 26 Aug 2025 14:01:56 +0300 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 0/2] clk: renesas: rzg2l: Disable unused clocks after resume To: Brian Masney Cc: mturquette@baylibre.com, sboyd@kernel.org, geert+renesas@glider.be, linux@armlinux.org.uk, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea References: <20250821080333.27049-1-claudiu.beznea.uj@bp.renesas.com> Content-Language: en-US From: claudiu beznea In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, Brian, On 8/25/25 20:05, Brian Masney wrote: > Hi Claudiu, > > On Thu, Aug 21, 2025 at 11:03:30AM +0300, Claudiu wrote: >> From: Claudiu Beznea >> >> Hi, >> >> This series disables clocks that remain unused after resume. >> This is necessary when the resume process is done with the help of the >> bootloader, as the bootloader enables various clocks when returning from >> resume. >> >> On the RZ/G3S SoC (where this series was tested), the bootloader enables >> the SDHI clocks (for all SDHI modules, of which 2 are used by Linux and >> 1 is unused) and the clocks for a serial IP (unused by Linux). >> >> Testing was done on the RZ/G3S SMARC Carrier II board. > > Do you think that other boards would also benefit from this change? If > so, what do you think about putting the call to register_pm_notifier() > inside an __init block in clk.c so that this same change doesn't have to > be implemented across various clk drivers? Yes, that was my other approach I was thinking about. I wanted to see how other people consider this version. > > Alternatively, if this is board specific, could this be fixed in the > boot loader so that the clock that's not used by Linus is properly shut > down on resume? As a result of your request I did some more investigations on my side, I can say that, yes, in theory that could be also handled by bootloader. I can drop this and try to do it in bootloader, if any. Please let me know if you still consider this (or the variant that implements it in a generic way) necessary. Thank you for your review, Claudiu > > I'm not the subsystem maintainer, so I'm not asking you to make any of > these changes. > > Brian >