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)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:28:11 +0000 (15:28 -0500)
commitaf6858fff9d5f6e207ecadc56d9ff96350f250c4
treeb5d6dca838aba7683b7a410dc79f03f806391327
parent85e86e28c39c09f62789af4a89e93c446cb8ec72
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>
(cherry picked from commit bcb7440e76a96c8a244bd683142a38f7d5cecb93)
drivers/extcon/extcon-usb-gpio.c