mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-22 04:15:02 +00:00
usb: serial: Add a check for current autosuspend-delay expiration
Upon autosuspend-delay expiration for the device, runtime pm thread initiates run time suspend after checking device's power.last_busy time. There is a possibility of race condition between this check and device interface driver updating power.last_busy time which results in interface suspend in the middle of ongoing transfer on that interface. CRs-Fixed: 381765 Change-Id: I1fc4f8d9d9e83ef3ef6c564ee76294a703230fad Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This commit is contained in:
parent
20b52dcb10
commit
4d4bd00689
1 changed files with 1 additions and 1 deletions
|
@ -591,7 +591,7 @@ int usb_wwan_suspend(struct usb_serial *serial, pm_message_t message)
|
|||
b = intfdata->in_flight;
|
||||
spin_unlock_irq(&intfdata->susp_lock);
|
||||
|
||||
if (b)
|
||||
if (b || pm_runtime_autosuspend_expiration(&serial->dev->dev))
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue