Skip to content
Commit 3f3e7c6e authored by Ben Nizette's avatar Ben Nizette Committed by Dmitry Torokhov
Browse files

Input: ads7846 - fix unsafe disable_irq

The use of disable_irq inside the handler for the interrupt being
disabled has always been dangerous.  disable_irq should wait for that
handler to complete before returning -> deadlock.

For some reason this wasn't actually the case until 3aa551c9

 was merged
but since this time, the ads7846 driver has deadlocked the system on
first interrupt.

Convert the driver to use the handler-safe _nosync variant.

Signed-off-by: default avatarBen Nizette <bn@niasdigital.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 180deb50
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment