usb: mbim: Fix MBIM write to work during USB bus suspend or low-power mode
When the USB core is suspended or in low-power mode state, the
usb_ep_queue() call can not be completed immediately, since an asynchronous
USB wakeup task needs to be executed first. In this case, usb_ep_queue()
returns -EAGAIN and the caller needs to rerty again later.
This patch fixes the mbim_write() API to work with this design or the
usb_ep_queue() API. Now, mbim_write() rerties the call to usb_ep_queue()
few times when -EAGAIN is returned.
CRs-Fixed: 678203
Change-Id: I11db981009599f49567cc599f609162f8ba0cb13
Signed-off-by:
Danny Segal <dsegal@codeaurora.org>
Loading
Please register or sign in to comment