MLK-11340-39 usb: chipidea: otg: clear b_bus_req when vbus is off
authorLi Jun <B47624@freescale.com>
Mon, 22 Sep 2014 08:19:59 +0000 (16:19 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:02 +0000 (14:47 -0500)
commit6b4feac3dbe35a961befe6f34a266b7f336dcfb4
tree69a1be6cb2e3bebb7e6800223cd6c8cd8f410c05
parentcac6e02a68ce8e08d7a4e4682012befcaa388af4
MLK-11340-39 usb: chipidea: otg: clear b_bus_req when vbus is off

In case of b_peripheral --> b_wait_acon --> b_idle due to vbus off
in b_wait_acon state, b_bus_req cannot be cleared in b_idle state,
which result in b device will do data pulse because b_bus_req is set.
This patch fix this issue by clear the input variable b_bus_req when
vbus is off.

Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Li Jun <b47624@freescale.com>
(cherry picked from commit bc600546bf9193f1a39186ad4c07a5fd497c7bfd)
(cherry picked from commit c0ea9bfcd948e2d79ea77d22756550f498281cbb)
drivers/usb/chipidea/otg_fsm.c