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>