MLK-11132 usb: chipidea: otg: delay suspend for a_wait_vfall
authorLi Jun <jun.li@freescale.com>
Fri, 19 Jun 2015 09:18:48 +0000 (17:18 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:16 +0000 (14:47 -0500)
commita7fe88dfdf2ddfa6b532c44baa31be2788891d39
treeda2cdbcdb2ddc6bffd990708b6109e97e1e28cce
parent6e699bb5cb6974b60d8aaa409436f3343fa8adfb
MLK-11132 usb: chipidea: otg: delay suspend for a_wait_vfall

While A device as peripheral ends session by a_bus_drop, it will go
back to host role by transition to a_wait_vfall state, then ehci
host driver may access portsc status after controller enters suspend
, this will result in system hang since its clock is gated off.
This patch use existing autosuspend to delay the controller suspend
if it comes to a_wait_vfall state.

Signed-off-by: Li Jun <jun.li@freescale.com>
(cherry picked from commit b140fa6803ef6ececec17e435212a960a3169cc2)
drivers/usb/chipidea/otg_fsm.c