All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] pinctrl: qcom: sc7280: Add PM suspend callbacks
@ 2021-09-23  9:31 Rajendra Nayak
  2021-09-23 17:23 ` Bjorn Andersson
  2021-09-23 21:10 ` Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Rajendra Nayak @ 2021-09-23  9:31 UTC (permalink / raw)
  To: agross, bjorn.andersson, linus.walleij
  Cc: linux-arm-msm, linux-gpio, linux-kernel, Rajendra Nayak

Use PM suspend callbacks from msm core, without this the hog_sleep
pins don't change state in suspend.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
---
v2: removed some stale diffstat

 drivers/pinctrl/qcom/pinctrl-sc7280.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pinctrl/qcom/pinctrl-sc7280.c b/drivers/pinctrl/qcom/pinctrl-sc7280.c
index 607d459..1cbf2cc 100644
--- a/drivers/pinctrl/qcom/pinctrl-sc7280.c
+++ b/drivers/pinctrl/qcom/pinctrl-sc7280.c
@@ -1498,6 +1498,7 @@ static const struct of_device_id sc7280_pinctrl_of_match[] = {
 static struct platform_driver sc7280_pinctrl_driver = {
 	.driver = {
 		.name = "sc7280-pinctrl",
+		.pm = &msm_pinctrl_dev_pm_ops,
 		.of_match_table = sc7280_pinctrl_of_match,
 	},
 	.probe = sc7280_pinctrl_probe,
-- 
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] pinctrl: qcom: sc7280: Add PM suspend callbacks
  2021-09-23  9:31 [PATCH v2] pinctrl: qcom: sc7280: Add PM suspend callbacks Rajendra Nayak
@ 2021-09-23 17:23 ` Bjorn Andersson
  2021-09-23 21:10 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2021-09-23 17:23 UTC (permalink / raw)
  To: Rajendra Nayak
  Cc: agross, linus.walleij, linux-arm-msm, linux-gpio, linux-kernel

On Thu 23 Sep 04:31 CDT 2021, Rajendra Nayak wrote:

> Use PM suspend callbacks from msm core, without this the hog_sleep
> pins don't change state in suspend.
> 
> Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>

> ---
> v2: removed some stale diffstat
> 
>  drivers/pinctrl/qcom/pinctrl-sc7280.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/pinctrl/qcom/pinctrl-sc7280.c b/drivers/pinctrl/qcom/pinctrl-sc7280.c
> index 607d459..1cbf2cc 100644
> --- a/drivers/pinctrl/qcom/pinctrl-sc7280.c
> +++ b/drivers/pinctrl/qcom/pinctrl-sc7280.c
> @@ -1498,6 +1498,7 @@ static const struct of_device_id sc7280_pinctrl_of_match[] = {
>  static struct platform_driver sc7280_pinctrl_driver = {
>  	.driver = {
>  		.name = "sc7280-pinctrl",
> +		.pm = &msm_pinctrl_dev_pm_ops,
>  		.of_match_table = sc7280_pinctrl_of_match,
>  	},
>  	.probe = sc7280_pinctrl_probe,
> -- 
> QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
> of Code Aurora Forum, hosted by The Linux Foundation
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] pinctrl: qcom: sc7280: Add PM suspend callbacks
  2021-09-23  9:31 [PATCH v2] pinctrl: qcom: sc7280: Add PM suspend callbacks Rajendra Nayak
  2021-09-23 17:23 ` Bjorn Andersson
@ 2021-09-23 21:10 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2021-09-23 21:10 UTC (permalink / raw)
  To: Rajendra Nayak
  Cc: Andy Gross, Bjorn Andersson, MSM, open list:GPIO SUBSYSTEM, linux-kernel

On Thu, Sep 23, 2021 at 11:31 AM Rajendra Nayak <rnayak@codeaurora.org> wrote:

> Use PM suspend callbacks from msm core, without this the hog_sleep
> pins don't change state in suspend.
>
> Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
> ---
> v2: removed some stale diffstat

Patch applied for fixes!

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-23 21:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-23  9:31 [PATCH v2] pinctrl: qcom: sc7280: Add PM suspend callbacks Rajendra Nayak
2021-09-23 17:23 ` Bjorn Andersson
2021-09-23 21:10 ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.