[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cfeaa4b0-6894-4363-ba43-25eee31ed497@foss.st.com>
Date: Tue, 15 Jul 2025 13:47:38 +0200
From: Clement LE GOFFIC <clement.legoffic@...s.st.com>
To: Rob Herring <robh@...nel.org>
CC: Will Deacon <will@...nel.org>, Mark Rutland <mark.rutland@....com>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue
<alexandre.torgue@...s.st.com>,
Philipp Zabel <p.zabel@...gutronix.de>,
Jonathan Corbet <corbet@....net>,
Gatien Chevallier
<gatien.chevallier@...s.st.com>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Gabriel Fernandez
<gabriel.fernandez@...s.st.com>,
Krzysztof Kozlowski <krzk@...nel.org>,
Le
Goffic <legoffic.clement@...il.com>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-perf-users@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-stm32@...md-mailman.stormreply.com>,
<linux-kernel@...r.kernel.org>, <linux-doc@...r.kernel.org>,
<linux-clk@...r.kernel.org>
Subject: Re: [PATCH v2 02/16] dt-bindings: stm32: stm32mp25: add
`access-controller-cell` property
Hi Rob,
On 7/15/25 05:17, Rob Herring wrote:
> On Fri, Jul 11, 2025 at 04:48:54PM +0200, Clément Le Goffic wrote:
>> RCC is able to check the availability of a clock.
>> Allow to query the RCC with a firewall ID.
>
> If it is tied to a clock, do we need another provider? We have the
> "protected clocks" thing, but that might be a bit different.
What I understand is that the "protected-clocks" list is here to flag
clocks as protected and the access to it and its register by the kernel
may cause the reboot of the platform.
The current qcom implementation just drop clocks so no one can access to
it after they are registered.
For my understanding if you know why the kernel needs the information
"this clock can't be accessed", I would be interested/
Without the STM32 RCC driver modification, if we access to the DDRPERFM
peripheral register when the clock is secured we face the same issue, we
end up rebooting the platform.
Our RCC peripheral is able to know if our DDR subsystem clock (that is
shared between our DDR controller and DDRPERFM peripheral) is secured or
not, so we can access or not to DDRPERFM register.
It is the aim of the "access-controller" related code.
Correct me if I'm wrong but to me the difference might be that the
"protected-clocks" property is here to list in the DT clocks that can't
be accessed and that this information is not in the hardware.
In the STM32MP25 we are able to get this information through RCC
dedicated register. You can look at the `stm32_rcc_get_access()`
function in drivers/clk/stm32/clk-stm32mp25.c if needed.
Best regards,
Clément
Powered by blists - more mailing lists