]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: Add workqueue to handle vibrator timeout
authorAnn Chen <chen_ann@projectara.com>
Wed, 17 Aug 2016 08:38:56 +0000 (16:38 +0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 18 Aug 2016 11:36:28 +0000 (13:36 +0200)
commit0900845ab741dd7b0b8b3f03ded0ffc6a348dd90
treefa6035ddf11ca3d0a96de04c580ba79cdc4c6ac8
parent5f62eab04ab7d78afd8acf00c48a7a1539794e1f
greybus: Add workqueue to handle vibrator timeout

In the beginning, module side can control the vibrator timeout value,
it can disable vibrator until timeout. But after Runtime PM control added
in, AP side didn't know when module can be suspended, the vibrator
task will be interrupted by suspending event.

Because of this problem, the module can not be in charge of counting down
the timeout value, it is now up to the AP to manage this. So add workqueue
to handle the vibrator timeout.

Signed-off-by: Ann Chen <chen_ann@projectara.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/vibrator.c