CHROMIUM: Input: cyapa - remove detect work
authorDaniel Kurtz <djkurtz@chromium.org>
Thu, 29 Dec 2011 14:06:30 +0000 (22:06 +0800)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:12:00 +0000 (15:12 -0700)
commit2f00b36afb87e36c3277edb94174e3618d7a0dd3
tree9555266c60db291e4675e0d4596b512965b63676
parent7cb871ba826fd20397f149dcc675cf298b8a3314
CHROMIUM: Input: cyapa - remove detect work

CYAPA detect has been sped up enough now that it isn't worth the overhead
and complexity of having its own workqueue.

The only time detection is significantly slow (~2 seconds) is immediately
after a firmware update.  This case isn't even handled using the detect
work, since the firmware update is now done through the request_firmware()
interface which blocks until the entire update plus detection has
completed.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chromium-os:21047
TEST=cyapa detect occurs immediately during probe and completes within
     300ms.

Change-Id: I1575f3a90f4df815737ea6656b5f10b9ee837d90
Reviewed-on: https://gerrit.chromium.org/gerrit/13534
Reviewed-by: Dudley Du <dudl@cypress.com>
Reviewed-by: Benson Leung <bleung@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
Commit-Ready: Daniel Kurtz <djkurtz@chromium.org>
drivers/input/mouse/cyapa.c