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:
Mayank Rana <mrana@codeaurora.org>
Loading
Please register or sign in to comment