[PATCH] usb: cdc-wdm: avoid hanging on zero length reads

2013-12-20 Thread Bjørn Mork
commit 73e06865ead1 ("USB: cdc-wdm: support back-to-back USB_CDC_NOTIFY_RESPONSE_AVAILABLE notifications") implemented queued response handling. This added a new requirement: The read urb must be resubmitted every time we clear the WDM_READ flag if the response counter indicates that the device is

Re: [PATCH] usb: cdc-wdm: avoid hanging on zero length reads

2013-12-20 Thread Oliver Neukum
On Fri, 2013-12-20 at 14:07 +0100, Bjørn Mork wrote: > commit 73e06865ead1 ("USB: cdc-wdm: support back-to-back > USB_CDC_NOTIFY_RESPONSE_AVAILABLE notifications") implemented > queued response handling. This added a new requirement: The read > urb must be resubmitted every time we clear the WDM_RE

Re: [PATCH] usb: cdc-wdm: avoid hanging on zero length reads

2013-12-21 Thread Thomas Schäfer
Hi Bjørn, it seems to me that this patch solved some problems. ( time out ) Some other problems "introduced" in 3.13 are still there. mbim wwan and dhcpv4 does not work (worked in 3.12) K5150 huawai ncm wwan and dhcpv4 does not work (ncm worked in 3.12) E5776 Unfortunately I can not test IPv6-b

Re: [PATCH] usb: cdc-wdm: avoid hanging on zero length reads

2013-12-22 Thread Bjørn Mork
Thomas Schäfer writes: > Hi Bjørn, > > it seems to me that this patch solved some problems. > ( time out ) Thanks for testing. Let me know if you hit similar issues. There might still be some we haven't found. > Some other problems "introduced" in 3.13 are still there. > > mbim wwan and dhcp