OSDN Git Service

HID: hid-sensor-hub: do not process feature reports in raw_event
authorDaniel Leung <daniel.leung@intel.com>
Fri, 4 Jan 2013 17:38:23 +0000 (09:38 -0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 13 Dec 2014 17:06:41 +0000 (01:06 +0800)
commit841cce417825032f4c70f833f6d9a869447e588d
tree365aac034ac9c70935b0d33abdef4440fdf96c2e
parent55792d2c7ee308820521408a94d67e2611e6ddc0
HID: hid-sensor-hub: do not process feature reports in raw_event

In sensor_hub_raw_event(), feature reports are ignored but are still
marked as processed. This causes the in-kernel struct not to be
updated. Any non-updated fields in the feature reports are zero, and
they are being sent to the device. This causes confusion in the sensor
hub firmware, and some sensors are not powered up as a result.

This changes the raw_event rountine to only process input reports,
and let the hid core handle the incoming feature reports.

For: AXIA-1451
Change-Id: I0f246afd1d773aa9c07a4333ccf2e7f2a2c35278
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
drivers/hid/hid-sensor-hub.c