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)
commite621132f934f5922e8a3968edd236f97cdad60cf
tree1133048e39447c9d4246dce23768c467a69d7629
parentc5e8848fc98e363ea51b68de01392366312d9efa
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