Commit 32baf609 authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Fix OPT A error "B-OPT Did not detect reset after connecting"

Fix OPT A error "B-OPT Did not detect reset after connecting"

hub 1-0:1.0: hub_suspend
usb usb1: suspend fail, err -16
usb usb1: 'global' suspend -16
hub 1-0:1.0: activate --> -108
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent ad179468
...@@ -341,6 +341,14 @@ void musb_hnp_stop(struct musb *musb) ...@@ -341,6 +341,14 @@ void musb_hnp_stop(struct musb *musb)
DBG(1, "HNP: Stopping in unknown state %s\n", DBG(1, "HNP: Stopping in unknown state %s\n",
otg_state_string(musb)); otg_state_string(musb));
} }
/*
* When returning to A state after HNP, avoid hub_port_rebounce(),
* which cause occasional OPT A "Did not receive reset after connect"
* errors.
*/
musb->port1_status &=
~(1 << USB_PORT_FEAT_C_CONNECTION);
} }
#endif #endif
......
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