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

Commit 5ea80d0f authored by Azhar Shaikh's avatar Azhar Shaikh
Browse files

usb: gadget: f_gsi: Store the return value of ipa_suspend_work_handler()



The return value of ipa_suspend_work_handler() is not stored in
ipa_work_handler(), in case of suspend event is received in connected
state. Sometimes even when ipa_suspend_work_handler() returns non-zero
value, usb_gadget_autopm_put_async() gets called, which causes the
pm_usage count to go negative.
Store the return value of ipa_suspend_work_handler() and then do a
put_sync only when the return value is 0.

Change-Id: I39dc8ac5b456f1c0c62cc4764be1670748fc284d
CRs-fixed: 958227
Signed-off-by: default avatarAzhar Shaikh <azhars@codeaurora.org>
parent 2f49086b
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