Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5b425feb authored by Danny Segal's avatar Danny Segal
Browse files

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: default avatarDanny Segal <dsegal@codeaurora.org>
parent 83176dae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment