1
0
Fork 0
alistair23-linux/drivers/extcon
Hans de Goede 0434352d3d extcon: int3496: process id-pin first so that we start with the right status
Some other drivers may be waiting for our extcon to show-up, exiting their
probe methods with -EPROBE_DEFER until we show up.

These drivers will typically get the cable state directly after getting
the extcon, this commit changes the int3496 code to wait for the initial
processing of the id-pin to complete before exiting probe() with 0, which
will cause devices waiting on the defered probe to get reprobed.

This fixes a race where the initial work might still be running while other
drivers were already calling extcon_get_state().

Fixes: 2f556bdb9f ("extcon: int3496: Add Intel INT3496 ACPI ... driver")
Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2018-02-14 06:37:33 +09:00
..
Kconfig extcon: cros-ec: Add extcon-cros-ec driver to support display out 2017-07-17 19:25:49 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
devres.c extcon: Correct description to improve the readability 2017-08-16 09:27:55 +09:00
extcon-adc-jack.c extcon: adc-jack: Fix platform_get_irq's error checking 2017-11-27 10:23:47 +09:00
extcon-arizona.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
extcon-axp288.c Revert "extcon: axp288: Redo charger type detection a couple of seconds after probe()" 2018-02-13 06:49:44 +09:00
extcon-gpio.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
extcon-intel-cht-wc.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
extcon-intel-int3496.c extcon: int3496: process id-pin first so that we start with the right status 2018-02-14 06:37:33 +09:00
extcon-max3355.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
extcon-max8997.c extcon: max8997: Delete unneeded initialization in max8997_muic_set_path() 2017-11-27 10:23:47 +09:00
extcon-max14577.c extcon: max14577: Delete an unnecessary variable initialisation in max14577_muic_set_path() 2017-10-23 14:10:26 +09:00
extcon-max77693.c extcon: max77693: Delete unneeded initialization in max77693_muic_set_path() 2017-11-27 10:23:47 +09:00
extcon-max77843.c extcon: max77843: Add support for SmartDock accessory 2017-10-24 09:48:54 +09:00
extcon-palmas.c extcon: palmas: Don't miss GPIO events during suspend/resume 2017-04-06 10:55:22 +09:00
extcon-qcom-spmi-misc.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
extcon-rt8973a.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
extcon-rt8973a.h extcon: rt8973a: Add Richtek RT8973A extcon driver 2014-09-22 11:43:08 +09:00
extcon-sm5502.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
extcon-sm5502.h extcon: sm5502: Move sm5502.h header file to extcon directory 2014-09-22 11:43:08 +09:00
extcon-usb-gpio.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
extcon-usbc-cros-ec.c extcon: usbc-cros-ec: add support to notify USB type cables. 2017-12-15 17:21:49 +09:00
extcon.c extcon: make extcon_info static const, fixes warning 2017-10-23 14:10:25 +09:00
extcon.h USB/PHY patches for 4.15-rc1 2017-11-13 21:14:07 -08:00