Re: [PATCH v2 2/4] soc: qcom: rpmh: Add support to read back resource settings
From: Maulik Shah (mkshah)
Date: Wed Oct 22 2025 - 02:13:51 EST
On 10/22/2025 3:58 AM, Dmitry Baryshkov wrote:
> On Wed, Oct 22, 2025 at 02:38:54AM +0530, Kamal Wadhwa wrote:
>> From: Maulik Shah <maulik.shah@xxxxxxxxxxxxxxxx>
>>
>> All rpmh_*() APIs so far have supported placing votes for various
>> resource settings but the H/W also have option to read resource
>> settings.
>
> Is it supported since SDM845?
Yes, H/W supports reads since SDM845.>
>>
>> This change adds a new rpmh_read() API to allow clients
>
> See Documentation/process/submitting-patches.rst, "This patch ..."
I will address in next revision.
>
>> to read back resource setting from H/W. This will be useful for
>> clients like regulators, which currently don't have a way to know
>> the settings applied during bootloader stage.
>>
>> Link: https://lore.kernel.org/r/20250623-add-rpmh-read-support-v1-1-ae583d260195@xxxxxxxxxxxxxxxx
>
> This is useless, please drop.
I will address in next revision.
Thanks,
Maulik
>
>> Signed-off-by: Maulik Shah <maulik.shah@xxxxxxxxxxxxxxxx>
>> Signed-off-by: Kamal Wadhwa <kamal.wadhwa@xxxxxxxxxxxxxxxx>
>> ---
>> drivers/soc/qcom/rpmh-rsc.c | 13 +++++++++++--
>> drivers/soc/qcom/rpmh.c | 47 +++++++++++++++++++++++++++++++++++++++++----
>> include/soc/qcom/rpmh.h | 5 +++++
>> include/soc/qcom/tcs.h | 2 ++
>> 4 files changed, 61 insertions(+), 6 deletions(-)
>>
>