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

Commit c736cf6f authored by Mayank Rana's avatar Mayank Rana
Browse files

net: usbnet: Add IPA RM dependency between ODU_ADAPT_PROD and APPS_CONS



With ODU bridge functionality, it is client (here usbnet) responsibility
to create and delete IPA RM dependency between ODU_ADAPT_PROD and
APPS_CONS. Without this dependency, IPA may not able to clock ON and OFF
when IPA clock gating is enabled. This results into ODU bridge
functionality failure with USB host mode usecase.

Also correct return value check by using -EINPROGRESS instead of
EINPROGRESS with ipa_rm_request_resource() and ipa_rm_release_resource().

Also make sure to return success when wait_for_completion_timeout() is not
timeout to avoid failing of usbnet_probe() as wait_for_completion_timeout()
returns remaining jiffies if completion is received.

CRs-Fixed: 1018189
Change-Id: I323db587706335765e32b6ac1ab018d4f3a95487
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 50239ba4
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