There is a test case in PTS tool; PTS will send the VIRTUAL_CABLE_UNPLUG
command to IUT. Then IUT should disconnect the channel and kill the HID
session when it receives the command. The VIRTUAL_CABLE_UNPLUG command
is parsed by HID transport, but it is not scheduled to do so. Add a
call to hidp_schedule() to kill the session.
Signed-off-by: Jothikumar Mothilal <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
/* Kill session thread */
atomic_inc(&session->terminate);
+ hidp_schedule(session);
}
}