* [PATCH 1/2] spmi: pmic_arb: make selectable on ARCH_QCOM
@ 2014-03-03 16:49 Josh Cartwright
2014-03-03 16:49 ` [PATCH 2/2] spmi: pm: drop bus-level PM suspend/resume routines Josh Cartwright
2014-03-03 17:06 ` [PATCH 1/2] spmi: pmic_arb: make selectable on ARCH_QCOM Kumar Gala
0 siblings, 2 replies; 3+ messages in thread
From: Josh Cartwright @ 2014-03-03 16:49 UTC (permalink / raw)
To: Greg Kroah-Hartman, linux-kernel; +Cc: linux-arm-msm, Kumar Gala
With the split of Qualcomm MSM support into legacy and multiplatform,
the SPMI PMIC arb driver is only relevant on the multiplatform supported
SoCs. Switch the Kconfig depends to ARCH_QCOM.
Cc: Kumar Gala <galak@codeaurora.org>
Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
---
drivers/spmi/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/spmi/Kconfig b/drivers/spmi/Kconfig
index 075bd79..bf1295e 100644
--- a/drivers/spmi/Kconfig
+++ b/drivers/spmi/Kconfig
@@ -14,8 +14,8 @@ config SPMI_MSM_PMIC_ARB
tristate "Qualcomm MSM SPMI Controller (PMIC Arbiter)"
depends on ARM
depends on IRQ_DOMAIN
- depends on ARCH_MSM || COMPILE_TEST
- default ARCH_MSM
+ depends on ARCH_QCOM || COMPILE_TEST
+ default ARCH_QCOM
help
If you say yes to this option, support will be included for the
built-in SPMI PMIC Arbiter interface on Qualcomm MSM family
--
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
* [PATCH 2/2] spmi: pm: drop bus-level PM suspend/resume routines
2014-03-03 16:49 [PATCH 1/2] spmi: pmic_arb: make selectable on ARCH_QCOM Josh Cartwright
@ 2014-03-03 16:49 ` Josh Cartwright
2014-03-03 17:06 ` [PATCH 1/2] spmi: pmic_arb: make selectable on ARCH_QCOM Kumar Gala
1 sibling, 0 replies; 3+ messages in thread
From: Josh Cartwright @ 2014-03-03 16:49 UTC (permalink / raw)
To: Greg Kroah-Hartman, linux-kernel; +Cc: linux-arm-msm, Felipe Balbi
SPMI defines the behavior of a device in the "SLEEP" state as being
"user-defined or specified by the device manufacturer". Without
clearly-defined bus-level semantics for low-power states, push the
responsibility of transitioning a device into/out of "SLEEP" into SPMI
device drivers.
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
---
drivers/spmi/spmi.c | 35 -----------------------------------
1 file changed, 35 deletions(-)
diff --git a/drivers/spmi/spmi.c b/drivers/spmi/spmi.c
index 6122c8f..3b57807 100644
--- a/drivers/spmi/spmi.c
+++ b/drivers/spmi/spmi.c
@@ -46,40 +46,6 @@ static const struct device_type spmi_ctrl_type = {
.release = spmi_ctrl_release,
};
-#ifdef CONFIG_PM_RUNTIME
-static int spmi_runtime_suspend(struct device *dev)
-{
- struct spmi_device *sdev = to_spmi_device(dev);
- int err;
-
- err = pm_generic_runtime_suspend(dev);
- if (err)
- return err;
-
- return spmi_command_sleep(sdev);
-}
-
-static int spmi_runtime_resume(struct device *dev)
-{
- struct spmi_device *sdev = to_spmi_device(dev);
- int err;
-
- err = spmi_command_wakeup(sdev);
- if (err)
- return err;
-
- return pm_generic_runtime_resume(dev);
-}
-#endif
-
-static const struct dev_pm_ops spmi_pm_ops = {
- SET_RUNTIME_PM_OPS(
- spmi_runtime_suspend,
- spmi_runtime_resume,
- NULL
- )
-};
-
static int spmi_device_match(struct device *dev, struct device_driver *drv)
{
if (of_driver_match_device(dev, drv))
@@ -391,7 +357,6 @@ static int spmi_drv_remove(struct device *dev)
static struct bus_type spmi_bus_type = {
.name = "spmi",
.match = spmi_device_match,
- .pm = &spmi_pm_ops,
.probe = spmi_drv_probe,
.remove = spmi_drv_remove,
};
--
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 1/2] spmi: pmic_arb: make selectable on ARCH_QCOM
2014-03-03 16:49 [PATCH 1/2] spmi: pmic_arb: make selectable on ARCH_QCOM Josh Cartwright
2014-03-03 16:49 ` [PATCH 2/2] spmi: pm: drop bus-level PM suspend/resume routines Josh Cartwright
@ 2014-03-03 17:06 ` Kumar Gala
1 sibling, 0 replies; 3+ messages in thread
From: Kumar Gala @ 2014-03-03 17:06 UTC (permalink / raw)
To: Josh Cartwright; +Cc: Greg Kroah-Hartman, linux-kernel, linux-arm-msm
On Mar 3, 2014, at 10:49 AM, Josh Cartwright <joshc@codeaurora.org> wrote:
> With the split of Qualcomm MSM support into legacy and multiplatform,
> the SPMI PMIC arb driver is only relevant on the multiplatform supported
> SoCs. Switch the Kconfig depends to ARCH_QCOM.
>
> Cc: Kumar Gala <galak@codeaurora.org>
> Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
> ---
> drivers/spmi/Kconfig | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/spmi/Kconfig b/drivers/spmi/Kconfig
> index 075bd79..bf1295e 100644
> --- a/drivers/spmi/Kconfig
> +++ b/drivers/spmi/Kconfig
> @@ -14,8 +14,8 @@ config SPMI_MSM_PMIC_ARB
> tristate "Qualcomm MSM SPMI Controller (PMIC Arbiter)"
> depends on ARM
> depends on IRQ_DOMAIN
> - depends on ARCH_MSM || COMPILE_TEST
> - default ARCH_MSM
> + depends on ARCH_QCOM || COMPILE_TEST
> + default ARCH_QCOM
> help
> If you say yes to this option, support will be included for the
> built-in SPMI PMIC Arbiter interface on Qualcomm MSM family
Acked-by: Kumar Gala <galak@codeaurora.org>
- k
--
Employee of Qualcomm Innovation Center, Inc.
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
end of thread, other threads:[~2014-03-03 17:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03 16:49 [PATCH 1/2] spmi: pmic_arb: make selectable on ARCH_QCOM Josh Cartwright
2014-03-03 16:49 ` [PATCH 2/2] spmi: pm: drop bus-level PM suspend/resume routines Josh Cartwright
2014-03-03 17:06 ` [PATCH 1/2] spmi: pmic_arb: make selectable on ARCH_QCOM Kumar Gala
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).