extcon: intel-cht-wc: Set direction and drv flags for V5 boost GPIO
authorHans de Goede <hdegoede@redhat.com>
Mon, 19 Feb 2018 13:20:46 +0000 (14:20 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 21 Mar 2018 04:57:52 +0000 (13:57 +0900)
commitad49aee401dd1997ec71360df6e51a91ad3cf516
tree990250b50cc4fefbf854ac62e2e6a8184b8c4a25
parent4a3928c6f8a53fa1aed28ccba227742486e8ddcb
extcon: intel-cht-wc: Set direction and drv flags for V5 boost GPIO

Sometimes (firmware bug?) the V5 boost GPIO is not configured as output
by the BIOS, leading to the 5V boost convertor being permanently on,

Explicitly set the direction and drv flags rather then inheriting them
from the firmware to fix this.

Fixes: 585cb239f4de ("extcon: intel-cht-wc: Disable external 5v boost ...")
Cc: stable@vger.kernel.org
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-intel-cht-wc.c