]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics-rmi4 - introduce rmi_f34v7_check_command_status() helper
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Wed, 8 Jun 2022 12:48:01 +0000 (14:48 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 23 Sep 2022 20:00:13 +0000 (13:00 -0700)
commita8933de97405e9b41cdf87ecf5a53c3a642b3159
treed8fb6a620e386b18f72a2ceffa786f365a322a7c
parent32f97ebaec65ab8ec277cc039c0e87c59dfc1d7b
Input: synaptics-rmi4 - introduce rmi_f34v7_check_command_status() helper

Add a function that waits for the last command to complete and checks
the status, and use it where appropriate. This prepares for the subsequent
fix of the completion condition in rmi_f34_attention(), which would
previously lead to a timeout instead of a more detailed error message
whenever a command was unsuccessful with v7/v8 bootloaders.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20220608124808.51402-3-matthias.schiffer@ew.tq-group.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f34v7.c