]> git.baikalelectronics.ru Git - kernel.git/commit
Input: atkbd - postpone restoring LED/repeat rate at resume
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 Oct 2009 06:39:17 +0000 (23:39 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 Oct 2009 07:01:19 +0000 (00:01 -0700)
commit2f37ed5ac98e3680841b7f5d46b1577ddd00f651
tree2cc150d96a6eeec30b12d833b913c8e3a0478c3e
parentb8f2afb12981419f7b0d242dcd9466f06518c7c7
Input: atkbd - postpone restoring LED/repeat rate at resume

We need to postpone restoring LED state and typematic settings until
keyboard is finished reconnecting upon resume. Normally driver core
and PM infrastructure takes care of proper ordering and dependencies,
but or case actual reconnect is done asynchronously from kseriod.
So while driver core thinks that keyboard was resumed and it is time
to let input core run it's resume handlers in reality keyboard is not
ready yet. The solution is to keep rescheduling work that adjusts LED
and rate settings until keyboard is fully enabled.

Reported-by: Carlos R. Mafra <crmafra2@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/atkbd.c