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

From: Chanwoo Choi
Date: Fri Jan 06 2017 - 03:32:17 EST


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@xxxxxxx>
> ---
> 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