]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics-rmi4 - f03 - grab data passed by transport device
authorDennis Wassenberg <dennis.wassenberg@secunet.com>
Sat, 3 Dec 2016 01:45:29 +0000 (17:45 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 3 Dec 2016 01:51:30 +0000 (17:51 -0800)
commitf5932ef5d5bfe0d1b3f70a418c14bd3cc94b36a3
tree1133048e39447c9d4246dce23768c467a69d7629
parent49e8fc01e3ab3c51a49fbe49f43f31d43b0e2cc0
Input: synaptics-rmi4 - f03 - grab data passed by transport device

First check if there are data available passed by the transport device.
If data available use these data. If there are no data available
try to read the rmi block if dsata are passed this way.

This is the way the other rmi function handlers will do this.

This patch is needed on HID devices because the firmware reads F03 data
registers and adds them to the HID attention report. Reading those
registers from the driver after the firmware read them will result in
invalid data.

Reviewed-by: Andrew Duggan <aduggan@synaptics.com>
Signed-off-by: Dennis Wassenberg <dennis.wassenberg@secunet.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f03.c