]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
extcon: Release locking when sending the notification of connector state
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 14 Jun 2018 02:16:29 +0000 (11:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Sep 2018 08:32:34 +0000 (10:32 +0200)
commit5f4a5b6fed24b7d7d0cc5cea6fec05b396d927cf
tree1c565275421e96aecfcc26a433271a33d91d4d25
parentcbdfa40c8187fed5a85d8107bb49cf2ed9c98e88
extcon: Release locking when sending the notification of connector state

commit 8a9dbb779fe882325b9a0238494a7afaff2eb444 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: ab11af049f88 ("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>
drivers/extcon/extcon.c