android_kernel_oneplus_msm8998/drivers/extcon
Charles Keepax 65e3cb04a5 extcon: arizona: Disable mic detect if running when driver is removed
[ Upstream commit 00053de52231117ddc154042549f2256183ffb86 ]

Microphone detection provides the button detection features on the
Arizona CODECs as such it will be running if the jack is currently
inserted. If the driver is unbound whilst the jack is still inserted
this will cause warnings from the regulator framework as the MICVDD
regulator is put but was never disabled.

Correct this by disabling microphone detection on driver removal and if
the microphone detection was running disable the regulator and put the
runtime reference that was currently held.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-06-11 12:24:01 +02:00
..
extcon-adc-jack.c
extcon-arizona.c extcon: arizona: Disable mic detect if running when driver is removed 2019-06-11 12:24:01 +02:00
extcon-axp288.c extcon: axp288: Use vbus-valid instead of -present to determine cable presence 2017-10-08 10:14:16 +02:00
extcon-gpio.c extcon: gpio: Use descriptor-based GPIO interface instead of legacy gpio_* API 2015-09-30 19:22:50 +09:00
extcon-max8997.c extcon: Modify the id and name of external connector 2015-10-16 08:30:09 +09:00
extcon-max14577.c extcon: Modify the id and name of external connector 2015-10-16 08:30:09 +09:00
extcon-max77693.c extcon: Modify the id and name of external connector 2015-10-16 08:30:09 +09:00
extcon-max77843.c extcon: max77843: Use correct size for reading the interrupt register 2016-05-04 14:48:54 -07:00
extcon-palmas.c extcon: palmas: Check the parent instance to prevent the NULL 2017-11-21 09:21:18 +01:00
extcon-rt8973a.c extcon: Modify the id and name of external connector 2015-10-16 08:30:09 +09:00
extcon-rt8973a.h
extcon-sm5502.c extcon: Modify the id and name of external connector 2015-10-16 08:30:09 +09:00
extcon-sm5502.h
extcon-usb-gpio.c extcon: usb-gpio: Don't miss event during suspend/resume 2019-04-03 06:23:18 +02:00
extcon.c extcon: Modify the id and name of external connector 2015-10-16 08:30:09 +09:00
Kconfig
Makefile