public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Chanwoo Choi <cw00.choi@samsung.com>
Cc: sbkim73@samsung.com, sameo@linux.intel.com,
	myungjoo.ham@samsung.com, kyungmin.park@samsung.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mfd: sec-core: Prepare regulators for suspend state to reduce power-consumption
Date: Wed, 18 Jun 2014 10:23:07 +0100	[thread overview]
Message-ID: <20140618092307.GH23945@lee--X1> (raw)
In-Reply-To: <1402311930-24056-1-git-send-email-cw00.choi@samsung.com>

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@samsung.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

      reply	other threads:[~2014-06-18  9:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09 11:05 [PATCH] mfd: sec-core: Prepare regulators for suspend state to reduce power-consumption Chanwoo Choi
2014-06-18  9:23 ` Lee Jones [this message]

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=20140618092307.GH23945@lee--X1 \
    --to=lee.jones@linaro.org \
    --cc=cw00.choi@samsung.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=myungjoo.ham@samsung.com \
    --cc=sameo@linux.intel.com \
    --cc=sbkim73@samsung.com \
    /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