[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d9bf2835-fac1-4afc-b1c3-330ae575387e@quicinc.com>
Date: Fri, 21 Jun 2024 09:33:50 +0530
From: Taniya Das <quic_tdas@...cinc.com>
To: Jagadeesh Kona <quic_jkona@...cinc.com>,
Bjorn Andersson
<andersson@...nel.org>,
Michael Turquette <mturquette@...libre.com>,
"Stephen
Boyd" <sboyd@...nel.org>,
Stanimir Varbanov <stanimir.k.varbanov@...il.com>,
Vikash Garodia <quic_vgarodia@...cinc.com>,
Bryan O'Donoghue
<bryan.odonoghue@...aro.org>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
"Ulf Hansson" <ulf.hansson@...aro.org>,
"Rafael J . Wysocki"
<rafael@...nel.org>,
Kevin Hilman <khilman@...nel.org>, Pavel Machek
<pavel@....cz>,
Len Brown <len.brown@...el.com>,
Greg Kroah-Hartman
<gregkh@...uxfoundation.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Andy
Gross <agross@...nel.org>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
Abel Vesa <abel.vesa@...aro.org>
CC: <linux-pm@...r.kernel.org>, <linux-media@...r.kernel.org>,
<linux-arm-msm@...r.kernel.org>, <linux-clk@...r.kernel.org>,
<linux-kernel@...r.kernel.org>,
Satya Priya Kakitapalli
<quic_skakitap@...cinc.com>,
Imran Shaik <quic_imrashai@...cinc.com>,
"Ajit
Pandey" <quic_ajipan@...cinc.com>
Subject: Re: [PATCH V6 3/5] clk: qcom: gdsc: Add set and get hwmode callbacks
to switch GDSC mode
On 6/19/2024 7:44 PM, Jagadeesh Kona wrote:
> Some GDSC client drivers require the GDSC mode to be switched dynamically
> to HW mode at runtime to gain the power benefits. Typically such client
> drivers require the GDSC to be brought up in SW mode initially to enable
> the required dependent clocks and configure the hardware to proper state.
> Once initial hardware set up is done, they switch the GDSC to HW mode to
> save power. At the end of usecase, they switch the GDSC back to SW mode
> and disable the GDSC.
>
> Introduce HW_CTRL_TRIGGER flag to register the set_hwmode_dev and
> get_hwmode_dev callbacks for GDSC's whose respective client drivers
> require the GDSC mode to be switched dynamically at runtime using
> dev_pm_genpd_set_hwmode() API.
>
> Signed-off-by: Jagadeesh Kona<quic_jkona@...cinc.com>
> Signed-off-by: Abel Vesa<abel.vesa@...aro.org>
> Reviewed-by: Bryan O'Donoghue<bryan.odonoghue@...aro.org>
> ---
> drivers/clk/qcom/gdsc.c | 42 +++++++++++++++++++++++++++++++++++++++++
> drivers/clk/qcom/gdsc.h | 1 +
> 2 files changed, 43 insertions(+)
Reviewed-by: Taniya Das <quic_tdas@...cinc.com>
--
Thanks & Regards,
Taniya Das.
Powered by blists - more mailing lists