• Chanwoo Choi's avatar
    extcon: Release locking when sending the notification of connector state · c0a8e047
    Chanwoo Choi authored
    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: ab11af04 ("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: 's avatarChanwoo Choi <cw00.choi@samsung.com>
    Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    c0a8e047
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
devres.c Loading commit data...
extcon-adc-jack.c Loading commit data...
extcon-arizona.c Loading commit data...
extcon-axp288.c Loading commit data...
extcon-gpio.c Loading commit data...
extcon-intel-cht-wc.c Loading commit data...
extcon-intel-int3496.c Loading commit data...
extcon-max14577.c Loading commit data...
extcon-max3355.c Loading commit data...
extcon-max77693.c Loading commit data...
extcon-max77843.c Loading commit data...
extcon-max8997.c Loading commit data...
extcon-palmas.c Loading commit data...
extcon-qcom-spmi-misc.c Loading commit data...
extcon-rt8973a.c Loading commit data...
extcon-rt8973a.h Loading commit data...
extcon-sm5502.c Loading commit data...
extcon-sm5502.h Loading commit data...
extcon-usb-gpio.c Loading commit data...
extcon-usbc-cros-ec.c Loading commit data...
extcon.c Loading commit data...
extcon.h Loading commit data...