]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/extcon/extcon-usb-gpio.c
extcon: usb-gpio: Add pinctrl operation during system PM
authorPeter Chen <peter.chen@nxp.com>
Wed, 4 Jan 2017 07:19:51 +0000 (15:19 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 9 Jan 2017 01:04:12 +0000 (10:04 +0900)
commitbcb7440e76a96c8a244bd683142a38f7d5cecb93
treed10b19d22a15882c2f28d01319cd947af6dd278e
parente6cf046543763878614d51e8283abd40d5e5327e
extcon: usb-gpio: Add pinctrl operation during system PM

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>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-usb-gpio.c