Re: [PATCH RESEND] usb: dwc2: rework initialization of host and gadget in dual-role mode

2015-03-11 Thread John Youn
On 3/10/2015 5:41 AM, Marek Szyprowski wrote: If device is configured to work only in HOST or DEVICE mode, there is no point in initializing both subdrivers. This patch also fixes resource leakage if host subdriver fails to initialize. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com

[PATCH RESEND] usb: dwc2: rework initialization of host and gadget in dual-role mode

2015-03-10 Thread Marek Szyprowski
If device is configured to work only in HOST or DEVICE mode, there is no point in initializing both subdrivers. This patch also fixes resource leakage if host subdriver fails to initialize. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/usb/dwc2/core.h | 2 ++