提交 66668991 编写于 作者: P Peter Chen 提交者: Felipe Balbi

usb: phy: fsm: change "|" to "||" for condition OTG_STATE_A_WAIT_BCON at statemachine

We should be using logical "or" not bitwise "or".
Signed-off-by: NPeter Chen <peter.chen@freescale.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 2284bb35
...@@ -314,7 +314,7 @@ int otg_statemachine(struct otg_fsm *fsm) ...@@ -314,7 +314,7 @@ int otg_statemachine(struct otg_fsm *fsm)
otg_set_state(fsm, OTG_STATE_A_VBUS_ERR); otg_set_state(fsm, OTG_STATE_A_VBUS_ERR);
else if (fsm->b_conn) else if (fsm->b_conn)
otg_set_state(fsm, OTG_STATE_A_HOST); otg_set_state(fsm, OTG_STATE_A_HOST);
else if (fsm->id | fsm->a_bus_drop | fsm->a_wait_bcon_tmout) else if (fsm->id || fsm->a_bus_drop || fsm->a_wait_bcon_tmout)
otg_set_state(fsm, OTG_STATE_A_WAIT_VFALL); otg_set_state(fsm, OTG_STATE_A_WAIT_VFALL);
break; break;
case OTG_STATE_A_HOST: case OTG_STATE_A_HOST:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册