linux-stable/drivers/extcon
Charles Keepax c9aa87e5f3 extcon: arizona: Disable mic detect if running when driver is removed
[ Upstream commit 00053de522 ]

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-05-31 06:46:23 -07: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: arizona: Disable mic detect if running when driver is removed 2019-05-31 06:46:23 -07:00
extcon-axp288.c extcon: axp288: Set USB role where necessary 2018-03-22 13:49:28 +01:00
extcon-gpio.c extcon: gpio: Convert to fully use GPIO descriptor 2018-03-21 13:58:09 +09:00
extcon-intel-cht-wc.c headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02:00
extcon-intel-int3496.c extcon: int3496: Use proper GPIO include 2018-07-12 09:06:30 +09:00
extcon-max3355.c extcon: max3355: include mod_devicetable.h 2018-07-11 18:17:56 +02: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 headers: separate linux/mod_devicetable.h from linux/platform_device.h 2018-07-07 17:52:26 +02: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: Switch to SPDX identifier. 2018-07-12 09:06:31 +09:00
extcon.c extcon: Release locking when sending the notification of connector state 2018-07-12 09:06:31 +09:00
extcon.h USB/PHY patches for 4.15-rc1 2017-11-13 21:14:07 -08:00
Kconfig extcon: axp288: Set USB role where necessary 2018-03-22 13:49:28 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00