input: Disconnect ctrl chan only if intr chan was disconnected by us
authorArchie Pusaka <apusaka@chromium.org>
Wed, 10 Jun 2020 15:04:46 +0000 (23:04 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commitc4a0a98eed121e7f9072e26c2624672d2207f243
tree1f0219fe8542318b5815ccd77fdf45feea584f97
parent1775320c3c75c86770dbd7e11c548852a029edaa
input: Disconnect ctrl chan only if intr chan was disconnected by us

If the intr channel was disconnected by the other party, then they
are also responsible to close the ctrl channel. Such disconnection
message would have the G_IO_ERR flag set, as opposed to it being
unset if the disconnection is initiated by us.

There doesn't seem to be an explicit rule in the specification
about this behavior, but this is enforced in the PTS qualification
tool.

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