USB: gadget: qdss: Fix issues during QDSS disable

Currently as part of qdss_unbind(), restarting usb connection to claim
endpoint from DBM mode and use it in legacy mode. This is resulting in
USB enumeration failures during QDSS composition switch in superspeed
mode. Hence don't restart usb in qdss_unbind(), instead correct code
sequence for disabling DBM endpoint and use it in legacy mode.

Perform hardware RESET only when moving from host to peripheral instead
of doing it as part of start peripheral. This avoids excessive resets
during multiple cable connects/disconnects in peripheral mode.

CRs-Fixed: 453656
Change-Id: I9338f8c53dad4d9c55e02f9022baa3f9cdff0cda
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
4 files changed