CHROMIUM: Input: cyapa - always set full power when device is detected.
authorDaniel Kurtz <djkurtz@chromium.org>
Thu, 16 Feb 2012 00:08:05 +0000 (08:08 +0800)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:12:01 +0000 (15:12 -0700)
commit46d12a943f48506e64b2f63b0c509e184b3dfb8e
tree06a96e7d20c5cf432de81a3c36a1730ed860ada5
parenta90db4123601b2975c096ef7a432e10ea41ca2f2
CHROMIUM: Input: cyapa - always set full power when device is detected.

On some systems, a system crash / warm boot does not reset a device's
current power mode to FULL_ACTIVE.

If such an event happens during suspend, after the device has been put in
a low power mode, the device will still be in low power mode on a
subsequent boot, since there was never a matching resume().

Handle this by always forcing full power whenever a device is first
detected to be in operational mode.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chrome-os-partner:7663
TEST=suspend device; force crash (how?);
  => trackpad should be responsive again on next boot

Change-Id: I56ded0d226508e30bf6df7cd87c29756f7c1f120
Reviewed-on: https://gerrit.chromium.org/gerrit/15981
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