OSDN Git Service

Fix data reporting state when using HID device
authorLoic Poulain <loic.poulain@intel.com>
Fri, 18 Dec 2015 01:35:07 +0000 (02:35 +0100)
committerAndre Eisenbach <eisenbach@google.com>
Wed, 17 Feb 2016 18:20:45 +0000 (18:20 +0000)
commit5f30560dbb80f0231fb9f351ab5b0180513dffe7
treec206aef27e6bb93a5d7deff9b77995e65012508d
parent5eedb96edd61f31294f5038adac22f4c76621028
Fix data reporting state when using HID device

Start and Stop are called on HID driver probe/unprobe.
Open/Close are called when driver is interesed/not-interested
in data reports, typically when user-space open/close the input
device. So we can have several open/close calls for one start/stop
cycle.

https://www.kernel.org/doc/Documentation/hid/hid-transport.txt

Problem is that current implementation disables data reporting on close
but never enables it on open. This patch fixes this issue to match the
expected behavior.

Change-Id: Id5d4627dba389338b06df60a6e1d993ac3e3e5ec
Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
btif/co/bta_hh_co.c