Re: [PATCH v3 1/4] soc: qcom: rpmh: Add support to read back resource settings

From: Dmitry Baryshkov

Date: Sat Apr 18 2026 - 20:07:12 EST


On Tue, Apr 07, 2026 at 10:13:29AM +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.
>
> Add new rpmh_read() API to allow clients 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.
>
> 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(-)
>

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>


--
With best wishes
Dmitry