MLK-9638-6 usb: common: otg: test: clear otg_hnp_reqd flag when it's invalid
authorLi Jun <B47624@freescale.com>
Sat, 27 Sep 2014 13:33:29 +0000 (21:33 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:12 +0000 (14:47 -0500)
commitabff36d7a2b9e67dde92e7c81ce5adb2d4d9833c
treef63c439b4cb57ebaabff4f83e39bd468985df357
parenta2884fe70c3a4fabf2261394b7b30cd8fc19b1cb
MLK-9638-6 usb: common: otg: test: clear otg_hnp_reqd flag when it's invalid

This patch clears otg_hnp_reqd feature related flags when the HNP test ends.
There are two otg fsm paths to end this feature request:
- b_peripheral --> b_wait_acon --> b_idle: we clear them when entering b_idle;
- b_peripheral --> b_wait_acon --> b_host --> b_peripheral : we clear them
  when leaving b_host.

Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Li Jun <b47624@freescale.com>
(cherry picked from commit 39d25f04ed047e15f23b44e8465ce46257547df7)
(cherry picked from commit f92c4e5794a278946d3f4e7c8bc30e3e43a80c28)
drivers/usb/common/usb-otg-fsm.c