]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit103bb6b2664b279d1a77ee9f4e24ee4cc6cfaa40
tree14d507133b6ebd7bed9bae3a87c144a1cc590f8e
parent4f3f78098d6ec7e333a49486656af19d85f46ecb
Input: synaptics-rmi4 - remove mutex calls while updating the firmware

This partially reverts commit 03a2b7d882a4 ("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