Parent: 98f5da02ce148a61efdfb2557152448f04bab51f
Author: Sonny Sasaka <sonnysasaka@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-12-15 01:04:23
Tree: 4878572ba18f1c96c5af347fea04f493ff806abe
Revert "input/hog: Remove HID device after HoG device disconnects" This reverts commit d6cafa1f0c3ea1989f8a580e52f418b0998a3552. In commit d6cafa1f0c3e ("input/hog: Remove HID device after HoG device disconnects"), the bt_hog structure is destroyed in order to fix a bug where the UHID connection is not destroyed. This fix has the cost of increasing reconnection time because every reconnection would need to re-read the report map again. An improvement to this fix is, instead of removing the bt_hog structure, we can just destroy the UHID with UHID_DESTROY event and use the existing bt_hog structure to keep the cache of the report map to avoid re-reading the report map at reconnection.
Diffstat
| M | profiles/input/hog.c | | | 2 | - - |
1 files changed, 0 insertions(+), 2 deletions(-)