dwc3-msm: Replace autosuspend delay functionality with stop host mode
With ID clear notification i.e. USB host mode disconnect, current code is using PM runtime autosuspend functionality to put USB into LPM having autosuspend delay of 1sec. With USB host mode cable disconnect/connect having delay of less than 1 second, USB doesn't go into LPM in between USB host mode disconnect and USB host mode cable connect. This results into XHCI controller not being reset as expected causing USB low speed and high speed device enumeration issue with connect-debounce failure condition. Fix this issue by replacing autosuspend functionality by pm_runtime_put_sync_suspend() to put USB into LPM with USB host cable disconnect immediately. While at it, also move queueing of sm_work function to dedicated sm_usb_wq from system workqueue to avoid parallel runs. Change-Id: I0db6ea7e63b853e419ccfd51808b8955e874db76 Signed-off-by:Mayank Rana <mrana@codeaurora.org> Signed-off-by:
Ajay Agarwal <ajaya@codeaurora.org>
Loading
Please register or sign in to comment