Re: [PATCH] usb: chipidea: properly handle host or gadget initialization failure

2017-04-26 Thread Peter Chen
On Tue, Apr 25, 2017 at 05:43:11PM +0800, Jisheng Zhang wrote: > If ci_hdrc_host_init() or ci_hdrc_gadget_init() returns error and the > error != -ENXIO, as Peter pointed out, "it stands for initialization > for host or gadget has failed", so we'd better return failure rather > continue. > > Signe

[PATCH] usb: chipidea: properly handle host or gadget initialization failure

2017-04-25 Thread Jisheng Zhang
If ci_hdrc_host_init() or ci_hdrc_gadget_init() returns error and the error != -ENXIO, as Peter pointed out, "it stands for initialization for host or gadget has failed", so we'd better return failure rather continue. Signed-off-by: Jisheng Zhang --- drivers/usb/chipidea/core.c | 25