1
0
Fork 0
remarkable-linux/drivers/extcon
Chanwoo Choi c0a8e04773 extcon: Release locking when sending the notification of connector state
commit 8a9dbb779f upstream.

Previously, extcon used the spinlock before calling the notifier_call_chain
to prevent the scheduled out of task and to prevent the notification delay.
When spinlock is locked for sending the notification, deadlock issue
occured on the side of extcon consumer device. To fix this issue,
extcon consumer device should always use the work. it is always not
reasonable to use work.

To fix this issue on extcon consumer device, release locking when sending
the notification of connector state.

Fixes: ab11af049f ("extcon: Add the synchronization extcon APIs to support the notification")
Cc: stable@vger.kernel.org
Cc: Roger Quadros <rogerq@ti.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-09 19:55:56 +02: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: Use the internal data instead of using struct extcon_dev 2017-01-09 10:04:11 +09:00
extcon-arizona.c extcon: arizona: Use devm_kcalloc() in arizona_extcon_get_micd_configs() 2017-05-23 18:32:03 +09:00
extcon-axp288.c extcon: axp288: Set EXTCON_USB when EXTCON_CHG_USB_SDP was set 2017-01-09 10:04:11 +09:00
extcon-gpio.c Merge branch 'next' into resolution 2016-09-15 16:45:20 +05:30
extcon-intel-cht-wc.c extcon: intel-cht-wc: Set direction and drv flags for V5 boost GPIO 2018-04-24 09:36:29 +02:00
extcon-intel-int3496.c extcon: int3496: process id-pin first so that we start with the right status 2018-02-28 10:19:39 +01:00
extcon-max3355.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-max8997.c extcon: Use the extcon_set_state_sync() instead of deprecated functions 2016-09-13 11:26:26 +09:00
extcon-max14577.c extcon: Restructure multi-line comments to follow codingstyle 2017-01-09 10:04:09 +09:00
extcon-max77693.c extcon: max77693: Allow MHL attach notifier 2017-08-25 09:32:27 +09:00
extcon-max77843.c extcon: Restructure multi-line comments to follow codingstyle 2017-01-09 10:04:09 +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: qcom-spmi-misc: Sync the extcon state on interrupt 2016-10-26 16:04:29 +09:00
extcon-rt8973a.c scripts/spelling.txt: add "swithc" pattern and fix typo instances 2017-02-27 18:43:46 -08:00
extcon-rt8973a.h extcon: rt8973a: Add Richtek RT8973A extcon driver 2014-09-22 11:43:08 +09:00
extcon-sm5502.c extcon: Restructure multi-line comments to follow codingstyle 2017-01-09 10:04:09 +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: usb-gpio: Don't miss event during suspend/resume 2017-04-06 10:55:21 +09:00
extcon-usbc-cros-ec.c extcon: cros-ec: Fix a potential NULL pointer dereference 2017-08-07 15:34:20 +09:00
extcon.c extcon: Release locking when sending the notification of connector state 2018-09-09 19:55:56 +02:00
extcon.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00