]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics-rmi4 - set reduced reporting mode only when requested
authorAndrew Duggan <aduggan@synaptics.com>
Tue, 24 Mar 2020 22:38:51 +0000 (15:38 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 24 Mar 2020 22:45:18 +0000 (15:45 -0700)
commite4b0d659f4a3c028b6a6fc3e6f049bf814743875
tree45583448be620b67bcce6e03f23afbe0ba54d360
parent512c52e5f70ebc0638efb3c0891c895073472468
Input: synaptics-rmi4 - set reduced reporting mode only when requested

The previous patch "f529da7f099c (Input: synaptics-rmi4 - switch to
reduced reporting mode)" enabled reduced reporting mode unintentionally
on some devices, if the firmware was configured with default Delta X/Y
threshold values. The result unintentionally degrade the performance of
some touchpads.

This patch checks to see that the driver is modifying the delta X/Y
thresholds before modifying the reporting mode.

Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Fixes: f529da7f099c ("Input: synaptics-rmi4 - switch to reduced reporting mode")
Link: https://lore.kernel.org/r/20200312005549.29922-1-aduggan@synaptics.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f11.c