]> git.baikalelectronics.ru Git - kernel.git/commit
Input: goodix - restore config on resume if necessary
authorHans de Goede <hdegoede@redhat.com>
Tue, 24 Mar 2020 18:34:11 +0000 (11:34 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 24 Mar 2020 22:07:58 +0000 (15:07 -0700)
commitb04cd80bdacd8c0fd414ed6f41d200c8cf2e129c
treeba06022d672ade779e73063ea941a9d1a114c913
parent230f79e76d72925ce009d71d5f0076adcb4d6df1
Input: goodix - restore config on resume if necessary

Some devices, e.g the Trekstor Primetab S11B, lose there config over
a suspend/resume cycle (likely the controller loses power during suspend).

This commit reads back the config version on resume and if matches the
expected config version it resets the controller and resends the config
we read back and saved at probe time.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1786317
BugLink: https://github.com/nexus511/gpd-ubuntu-packages/issues/10
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=199207
Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200307121505.3707-11-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix.c