Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1552599

Re: [PATCH v2 1/1] extcon: usb-gpio: add pinctrl operation during system PM

From Chanwoo Choi <cw00.choi@samsung.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/1] extcon: usb-gpio: add pinctrl operation during system PM
Date 2017-01-06 09:40 +0100
Message-ID <sWye6-7zH-19@gated-at.bofh.it> (permalink)
References <sWye6-7zH-21@gated-at.bofh.it> <sWye6-7zH-23@gated-at.bofh.it>
Organization Samsung Electronics

Show all headers | View raw


Hi Peter,

On 2017년 01월 04일 16:19, Peter Chen wrote:
> At some systems, the pinctrl setting will be lost or needs to
> set as "sleep" state to save power consumption. So, we need to
> configure pinctrl as "sleep" state when system enters suspend,
> and as "default" state after system resumes. In this way, the
> pinctrl value can be recovered as "default" state after resuming.
> 
> Signed-off-by: Peter Chen <peter.chen@nxp.com>
> ---
> Changes for v2:
> - Add header file for pinctrl to avoid build error
> - Only set pin as "sleep" state when the wakeup is not requested
> 
>  drivers/extcon/extcon-usb-gpio.c | 7 +++++++
>  1 file changed, 7 insertions(+)

Applied it. Thanks.

-- 
Best Regards,
Chanwoo Choi
S/W Center, Samsung Electronics

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH v2 1/1] extcon: usb-gpio: add pinctrl operation during  system PM Chanwoo Choi <cw00.choi@samsung.com> - 2017-01-06 09:40 +0100

csiph-web