提交 86de4895 编写于 作者: G Gregory Herrero 提交者: Felipe Balbi

usb: dwc2: gadget: abort core init if core_reset fails

No point of continue with initialization if core is not in a sane
state.
Signed-off-by: NGregory Herrero <gregory.herrero@intel.com>
Signed-off-by: NMian Yousaf Kaukab <yousaf.kaukab@intel.com>
Tested-by: NRobert Baldyga <r.baldyga@samsung.com>
Tested-by: NDinh Nguyen <dinguyen@opensource.altera.com>
Tested-by: NJohn Youn <johnyoun@synopsys.com>
Acked-by: NJohn Youn <johnyoun@synopsys.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 cd0e641c
......@@ -2287,7 +2287,8 @@ void dwc2_hsotg_core_init_disconnected(struct dwc2_hsotg *hsotg,
u32 val;
if (!is_usb_reset)
dwc2_hsotg_corereset(hsotg);
if (dwc2_hsotg_corereset(hsotg))
return;
/*
* we must now enable ep0 ready for host detection and then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册