aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-16 00:10:27 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-06-16 00:10:27 -0700
commitd74ef24841a972a9abe3742a7eff51cdac73db3a (patch)
treedc2eef751dc5d214d0fd73f19d0b36218d2cf6e3 /drivers
parentmcb: Acquire reference to carrier module in core (diff)
parentextcon: palmas: Fix boot up state of VBUS when using GPIO detection (diff)
downloadlinux-dev-d74ef24841a972a9abe3742a7eff51cdac73db3a.tar.xz
linux-dev-d74ef24841a972a9abe3742a7eff51cdac73db3a.zip
Merge tag 'extcon-fixes-for-4.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon into char-misc-linus
Chanwoo writes: Update extcon for v4.7-rc4 This patch fixes the following issue: - In the extcon-palmas.c, fix the state of VBUS when using GPIO detection. If probe funticon don't check the state during probe, the extcon client driver cannot get the state of VBUS gpio until the user detach the connector and attach the connector again.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/extcon/extcon-palmas.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-palmas.c b/drivers/extcon/extcon-palmas.c
index 8b3226dca1d9..caff46c0e214 100644
--- a/drivers/extcon/extcon-palmas.c
+++ b/drivers/extcon/extcon-palmas.c
@@ -360,6 +360,8 @@ static int palmas_usb_probe(struct platform_device *pdev)
palmas_enable_irq(palmas_usb);
/* perform initial detection */
+ if (palmas_usb->enable_gpio_vbus_detection)
+ palmas_vbus_irq_handler(palmas_usb->gpio_vbus_irq, palmas_usb);
palmas_gpio_id_detect(&palmas_usb->wq_detectid.work);
device_set_wakeup_capable(&pdev->dev, true);
return 0;