mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Manivannan Sadhasivam <mani@kernel.org>
To: Prashanth K <prashanth.k@oss.qualcomm.com>
Cc: Vinod Koul <vkoul@kernel.org>,
	 Kishon Vijay Abraham I <kishon@kernel.org>,
	 Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
	 linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org,
	 linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] phy: qcom: qmp-usb: Add PM suspend/resume callbacks
Date: Fri, 27 Nov 2026 19:10:52 +0530	[thread overview]
Message-ID: <179578685292.13164.3928712894764955778.b4-reply@b4> (raw)
In-Reply-To: <20261113103111.156476-2-prashanth.k@oss.qualcomm.com>

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@oss.qualcomm.com>
> ---
>  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



  reply	other threads:[~2026-11-27 13:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-13 10:31 [PATCH v2 0/2] Add the PM suspend/resume callbacks for qmp phys Prashanth K
2026-11-13 10:31 ` [PATCH v2 1/2] phy: qcom: qmp-usb: Add PM suspend/resume callbacks Prashanth K
2026-11-27 13:40   ` Manivannan Sadhasivam [this message]
2026-11-13 10:31 ` [PATCH v2 2/2] phy: qcom: qmp-combo: " Prashanth K
2026-11-27 13:41   ` Manivannan Sadhasivam
2026-11-30 11:00     ` Prashanth K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179578685292.13164.3928712894764955778.b4-reply@b4 \
    --to=mani@kernel.org \
    --cc=kishon@kernel.org \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=prashanth.k@oss.qualcomm.com \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®