]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
HID: google: Enable PM Full On mode when adjusting backlight
authorHaridhar Kalvala <haridhar.kalvala@intel.com>
Wed, 28 Mar 2018 06:16:10 +0000 (14:16 +0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 28 Mar 2018 14:12:58 +0000 (16:12 +0200)
commit7d3d88401fb75081e731d62c1c79584413525aa6
treefd18e36c6f2148f9aa21bf9ac08c316e4e82657f
parentbc774b8c110f7d90d13257b95b5a22f5bb7fd71b
HID: google: Enable PM Full On mode when adjusting backlight

hammer LED backlight brightness is not getting set when USB
device is in suspend state.

This patch fixes the issue by requesting USB HID device to be
in FULLON mode, so that sending hardware output report and
hardware raw request won't fail to set brightness, and set
device back to NORMAL mode once this call returns.

Signed-off-by: Haridhar Kalvala <haridhar.kalvala@intel.com>
Reviewed-by: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-google-hammer.c