From 73e06865ead1bec8d1c179e1c647dc77adde9116 Mon Sep 17 00:00:00 2001 From: Greg Suarez Date: Tue, 29 Oct 2013 10:29:10 -0700 Subject: [PATCH] USB: cdc-wdm: support back-to-back USB_CDC_NOTIFY_RESPONSE_AVAILABLE notifications MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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-format-patch failed