Merge 3.15-rc5 into usb-next
We need these USB fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -303,17 +303,18 @@ int otg_statemachine(struct otg_fsm *fsm)
|
||||
otg_set_state(fsm, OTG_STATE_A_WAIT_VRISE);
|
||||
break;
|
||||
case OTG_STATE_A_WAIT_VRISE:
|
||||
if (fsm->id || fsm->a_bus_drop || fsm->a_vbus_vld ||
|
||||
fsm->a_wait_vrise_tmout) {
|
||||
if (fsm->a_vbus_vld)
|
||||
otg_set_state(fsm, OTG_STATE_A_WAIT_BCON);
|
||||
}
|
||||
else if (fsm->id || fsm->a_bus_drop ||
|
||||
fsm->a_wait_vrise_tmout)
|
||||
otg_set_state(fsm, OTG_STATE_A_WAIT_VFALL);
|
||||
break;
|
||||
case OTG_STATE_A_WAIT_BCON:
|
||||
if (!fsm->a_vbus_vld)
|
||||
otg_set_state(fsm, OTG_STATE_A_VBUS_ERR);
|
||||
else if (fsm->b_conn)
|
||||
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);
|
||||
break;
|
||||
case OTG_STATE_A_HOST:
|
||||
|
مرجع در شماره جدید
Block a user