]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit91793f69e73a6bea58d20481ab67f4e41edbb42a
tree990250b50cc4fefbf854ac62e2e6a8184b8c4a25
parentbbe11a1155cbc6079fdd2c18f95f119157e6b7ca
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: 6ead4aa43974 ("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