Aaro Koskinen a0fa2206f5 Input: tsc2005 - fix locking issue
Commit 0b950d3 (Input: tsc2005 - add open/close) introduced a
locking issue with the ESD watchdog: __tsc2005_disable() is calling
cancel_delayed_work_sync() with mutex held, and the work also needs the
same mutex.

Fix the problem by using mutex_trylock() in tsc2005_esd_work(). If the
mutex is taken, we know we are in the middle of disable or enable and
the watchdog check can be skipped.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2011-03-23 23:50:36 -07:00
..
2011-01-20 22:54:43 -08:00
2011-03-18 23:38:50 -07:00
2008-05-20 12:17:39 -04:00
2011-03-16 23:29:56 -07:00
2011-03-23 23:50:36 -07:00
2008-10-15 23:29:12 -04:00
2008-10-15 23:29:12 -04:00
2008-10-15 23:29:12 -04:00