Browse Source

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.
Greg Kroah-Hartman 9 năm trước cách đây
mục cha
commit
d74ef24841
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      drivers/extcon/extcon-palmas.c

+ 2 - 0
drivers/extcon/extcon-palmas.c

@@ -360,6 +360,8 @@ static int palmas_usb_probe(struct platform_device *pdev)
 
 
 	palmas_enable_irq(palmas_usb);
 	palmas_enable_irq(palmas_usb);
 	/* perform initial detection */
 	/* 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);
 	palmas_gpio_id_detect(&palmas_usb->wq_detectid.work);
 	device_set_wakeup_capable(&pdev->dev, true);
 	device_set_wakeup_capable(&pdev->dev, true);
 	return 0;
 	return 0;