From: Greg Suarez Date: Tue, 29 Oct 2013 17:29:10 +0000 (-0700) Subject: USB: cdc-wdm: support back-to-back USB_CDC_NOTIFY_RESPONSE_AVAILABLE notifications X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~66^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73e06865ead1bec8d1c179e1c647dc77adde9116;p=pandora-kernel.git USB: cdc-wdm: support back-to-back USB_CDC_NOTIFY_RESPONSE_AVAILABLE notifications Some MBIM devices send back-to-back USB_CDC_NOTIFY_RESPONSE_AVAILABLE notifications when sending a message over multiple fragments or when there are unsolicited messages available. Count up the number of USB_CDC_NOTIFY_RESPONSE_AVAILABLE notifications received and decrement the count and submit the urb for the next response each time userspace completes a read the response. Signed-off-by: Greg Suarez Acked-by: Bjørn Mork Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed