]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 15:48:42 +0000 (11:48 -0400)
commitebe2b260647a62991f1a58d967d3d56ee06b1be7
treeb7cebc880e95490ee22a993718717266a7444754
parent278c2935c2adf988133f4a6e06f599a9dd9ffb77
extcon: intel-cht-wc: Set direction and drv flags for V5 boost GPIO

BugLink: http://bugs.launchpad.net/bugs/1773233
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/extcon/extcon-intel-cht-wc.c