Commit 851ce932 authored by Li Jun's avatar Li Jun Committed by Peter Chen

usb: chipidea: otg: don't wait vbus drops below BSV when starts host

Some HW design may use ID pin state to control vbus for otg port,
so before host role start, the vbus is already turned on, in this
case, we do not need wait vbus dropping below BSV.
Signed-off-by: default avatarLi Jun <jun.li@freescale.com>
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
parent 46b95a1d
...@@ -114,9 +114,12 @@ static void ci_handle_id_switch(struct ci_hdrc *ci) ...@@ -114,9 +114,12 @@ static void ci_handle_id_switch(struct ci_hdrc *ci)
ci_role(ci)->name, ci->roles[role]->name); ci_role(ci)->name, ci->roles[role]->name);
ci_role_stop(ci); ci_role_stop(ci);
/* wait vbus lower than OTGSC_BSV */
hw_wait_reg(ci, OP_OTGSC, OTGSC_BSV, 0, if (role == CI_ROLE_GADGET)
CI_VBUS_STABLE_TIMEOUT_MS); /* wait vbus lower than OTGSC_BSV */
hw_wait_reg(ci, OP_OTGSC, OTGSC_BSV, 0,
CI_VBUS_STABLE_TIMEOUT_MS);
ci_role_start(ci, role); ci_role_start(ci, role);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment