Re: [PATCH v2 1/2] phy: qcom: qmp-usb: Add PM suspend/resume callbacks
From: Manivannan Sadhasivam
Date: Fri Nov 27 2026 - 08:41:07 EST
On 2026-11-13 16:01 +0530, Prashanth K wrote:
> Currently when we perform system suspend, the phy clocks aren't
> turned off, this leads to power leakage. Prevent this by adding
> PM suspend/resume callbacks for the qmp-usb phy which toggles
> clocks on/off correspondingly.
>
> Signed-off-by: Prashanth K <prashanth.k@xxxxxxxxxxxxxxxx>
> ---
> drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c
> index 6a9faa0ce3bb..dc8be977e0a8 100644
> --- a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c
> +++ b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c
> @@ -2129,6 +2129,7 @@ static int __maybe_unused qmp_usb_runtime_resume(struct device *dev)
> static const struct dev_pm_ops qmp_usb_pm_ops = {
> SET_RUNTIME_PM_OPS(qmp_usb_runtime_suspend,
> qmp_usb_runtime_resume, NULL)
> + SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
This indicates that DEFINE_RUNTIME_DEV_PM_OPS() can be used instead.
- Mani