[PATCH 1/5] usb: musb: call musb_start() only once in OTG mode

2013-10-15 Thread Sebastian Andrzej Siewior
In commit 001dd84 (usb: musb: start musb on the udc side, too) it was ensured that the state engine is started also in OTG mode after a removal / insertion of the gadget. Unfortunately this change also introduced a bug: If the device is configured as OTG and it connected with a remote host

Re: [PATCH 1/5] usb: musb: call musb_start() only once in OTG mode

2013-10-15 Thread Felipe Balbi
Hi, On Tue, Oct 15, 2013 at 06:29:22PM +0200, Sebastian Andrzej Siewior wrote: In commit 001dd84 (usb: musb: start musb on the udc side, too) it was ensured that the state engine is started also in OTG mode after a removal / insertion of the gadget. Unfortunately this change also introduced a

Re: [PATCH 1/5] usb: musb: call musb_start() only once in OTG mode

2013-10-15 Thread Sebastian Andrzej Siewior
On 10/15/2013 07:43 PM, Felipe Balbi wrote: Hi, Hi, index d1d6b83..9af6bba 100644 --- a/drivers/usb/musb/musb_virthub.c +++ b/drivers/usb/musb/musb_virthub.c @@ -220,6 +220,23 @@ int musb_hub_status_data(struct usb_hcd *hcd, char *buf) return retval; } +static int musb_has_gadget(struct