projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1d78d2
)
MLK-9617-10 usb: common: otg: update condition from a_host to a_suspend
author
Li Jun
<B47624@freescale.com>
Sat, 27 Sep 2014 14:34:58 +0000
(22:34 +0800)
committer
Nitin Garg
<nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:13 +0000
(14:47 -0500)
This patch updates condition from a_host to a_suspend according to On-The-Go
and Embedded Host Supplement to the USB Revision 2.0 Specification Revision
2.0 version 1.1a.
Signed-off-by: Li Jun <b47624@freescale.com>
(cherry picked from commit
f3acf74150683d4555c82ad32b9c669d8a0a7fb5
)
(cherry picked from commit
a938eb1ccabe9213c0b232d45da2caeb75f8b9fe
)
drivers/usb/common/usb-otg-fsm.c
patch
|
blob
|
history
diff --git
a/drivers/usb/common/usb-otg-fsm.c
b/drivers/usb/common/usb-otg-fsm.c
index
0f34224
..
b117f5b
100644
(file)
--- a/
drivers/usb/common/usb-otg-fsm.c
+++ b/
drivers/usb/common/usb-otg-fsm.c
@@
-438,8
+438,7
@@
int otg_statemachine(struct otg_fsm *fsm)
case OTG_STATE_A_HOST:
if (fsm->id || fsm->a_bus_drop)
otg_set_state(fsm, OTG_STATE_A_WAIT_VFALL);
- else if ((!fsm->a_bus_req || fsm->a_suspend_req_inf) &&
- fsm->otg->host->b_hnp_enable)
+ else if (!fsm->a_bus_req || fsm->a_suspend_req_inf)
otg_set_state(fsm, OTG_STATE_A_SUSPEND);
else if (!fsm->b_conn)
otg_set_state(fsm, OTG_STATE_A_WAIT_BCON);