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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:42:57 +0000 (09:42 +0200)
commitf6b3a6ce0e6cd38afb61a5f55a138eb9b46d34e7
treee04f4e8a0fa4d5ab2c4333333026457528d298fc
parent46d52d7c5b8354882f8ce41537a574ea3457dbd4
extcon: intel-cht-wc: Set direction and drv flags for V5 boost GPIO

commit ad49aee401dd1997ec71360df6e51a91ad3cf516 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/extcon/extcon-intel-cht-wc.c