Input: synaptics-rmi4 - remove mutex calls while updating the firmware
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 1 Dec 2016 00:59:30 +0000 (16:59 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 1 Dec 2016 01:42:17 +0000 (17:42 -0800)
commite155d4ee0b878c857f91deb14d6d7dba55c38648
tree14d507133b6ebd7bed9bae3a87c144a1cc590f8e
parenta64ea311f1e4bc090c89960650637423e86c35c0
Input: synaptics-rmi4 - remove mutex calls while updating the firmware

This partially reverts commit 29fd0ec2bdbe ("Input: synaptics-rmi4 -
add support for F34 device reflash")

irq_mutex should be used only to protect data->current_irq_mask, not
preventing incoming input to be processed while the upgrade of the
firmware is happening. We can simply disable the irqs when we don't
want them to interfere with the upgrade process.

Tested on S7300 and S7800 (with F34 v7 patch added)

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Nick Dyer <nick@shmanahar.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_driver.c
drivers/input/rmi4/rmi_f34.c