[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140618092307.GH23945@lee--X1>
Date: Wed, 18 Jun 2014 10:23:07 +0100
From: Lee Jones <lee.jones@...aro.org>
To: Chanwoo Choi <cw00.choi@...sung.com>
Cc: sbkim73@...sung.com, sameo@...ux.intel.com,
myungjoo.ham@...sung.com, kyungmin.park@...sung.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mfd: sec-core: Prepare regulators for suspend state to
reduce power-consumption
On Mon, 09 Jun 2014, Chanwoo Choi wrote:
> This patch use regulator_suspend_prepare() function to prepare the proper state
> of regulators for suspend state to remove un-necessary leakage power-consumption.
>
> Signed-off-by: Chanwoo Choi <cw00.choi@...sung.com>
> ---
> This patch has a dependency on following patchset[1].
> - [1] https://lkml.org/lkml/2014/6/9/255
> [PATCHv4 0/3] mfd: sec-core: Add support S2MPU02 PMIC device
... which has now been applied, so:
Applied, thanks.
> drivers/mfd/sec-core.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
> index 5e8784b..e3413d5 100644
> --- a/drivers/mfd/sec-core.c
> +++ b/drivers/mfd/sec-core.c
> @@ -30,6 +30,7 @@
> #include <linux/mfd/samsung/s2mps14.h>
> #include <linux/mfd/samsung/s5m8763.h>
> #include <linux/mfd/samsung/s5m8767.h>
> +#include <linux/regulator/machine.h>
> #include <linux/regmap.h>
>
> static const struct mfd_cell s5m8751_devs[] = {
> @@ -406,6 +407,13 @@ static int sec_pmic_suspend(struct device *dev)
> */
> disable_irq(sec_pmic->irq);
>
> + switch (sec_pmic->device_type) {
> + case S2MPS14X:
> + case S2MPU02:
> + regulator_suspend_prepare(PM_SUSPEND_MEM);
> + break;
> + };
> +
> return 0;
> }
>
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists