Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 214fb6b5 authored by Chanwoo Choi's avatar Chanwoo Choi Committed by Gerrit - the friendly Code Review server
Browse files

extcon: Release locking when sending the notification of connector state



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: ab11af04 ("extcon: Add the synchronization extcon APIs to support the notification")
Change-Id: Ifcf301a44ce79e3b76f1044057fa86927b5e425d
Cc: stable@vger.kernel.org
Cc: Roger Quadros <rogerq@ti.com>
Cc: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Git-commit: 8a9dbb779fe882325b9a0238494a7afaff2eb444
Git-Repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarUdipto Goswami <ugoswami@codeaurora.org>
parent 6ae0f106
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment