input: disconnect intr channel before ctrl channel
authorArchie Pusaka <apusaka@chromium.org>
Tue, 9 Jun 2020 14:58:25 +0000 (22:58 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commit1775320c3c75c86770dbd7e11c548852a029edaa
treee0265fa23551eba14c7dfb0bd5c917cad681979c
parent4d5cd91803a8427760c844f041bf65b09d81a219
input: disconnect intr channel before ctrl channel

According to bluetooth HID Profile spec Ver 1.0, section 7.2.2, A
host or device shall always complete the disconnection of the
interrupt channel before disconnecting the control channel.
However, the current implementation disconnects them both
simultaneously.

This patch postpone the disconnection of control channel to the
callback of interrupt watch, which shall be called upon receiving
interrupt channel disconnection response.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/input/device.c