Re: [PATCH 1/2] usb: musb: musb_cppi41: recognize HS devices in hostmode

2014-11-04 Thread Sebastian Andrzej Siewior
On 10/31/2014 10:40 PM, Sergei Shtylyov wrote: >> @@ -264,7 +265,14 @@ static void cppi41_dma_callback(void *private_data) >>*/ >> controller = cppi41_channel->controller; >> >> -if (musb->g.speed == USB_SPEED_HIGH) { >> +if (is_host_active(musb)) { >> +

Re: [PATCH 1/2] usb: musb: musb_cppi41: recognize HS devices in hostmode

2014-10-31 Thread Sergei Shtylyov
Hello. On 11/01/2014 12:36 AM, Sebastian Andrzej Siewior wrote: There is a poll loop for max 25us for HS devices. Now guess what, I tested it in gadget mode and forgot about the little detail. Nobody seem to have it noticed… This patch adds the missing logic for hostmode so it is recognized in

[PATCH 1/2] usb: musb: musb_cppi41: recognize HS devices in hostmode

2014-10-31 Thread Sebastian Andrzej Siewior
There is a poll loop for max 25us for HS devices. Now guess what, I tested it in gadget mode and forgot about the little detail. Nobody seem to have it noticed… This patch adds the missing logic for hostmode so it is recognized in host and device mode properly. Signed-off-by: Sebastian Andrzej Sie