]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00331016-5 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)
committerLi Jun <jun.li@freescale.com>
Wed, 28 Jan 2015 03:08:37 +0000 (11:08 +0800)
commit60d3dfd8b8cf8aeab9d49c5378f687c402332342
tree125b38cafaa491a6ce5d13546f18ad3489156b2d
parentc6fc4719240229dadedcdbc835930f9c47ad9c01
ENGR00331016-5 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)
drivers/usb/chipidea/otg_fsm.c