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

Commit 48d55840 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: u_bam_data: Directly call suspend/resume APIs from function suspend



Suspend APIs for BAM based functions mbim, ecm and rndis call
bam_data_disconnect() if remote wakeup is disabled otherwise call
bam_data_suspend(). Similarly resume APIs call bam_data_connect() if remote
wakeup is disabled otherwise call bam_data_resume(). Move disconnect and
connect calls inside bam_data_suspend() and bam_data_resume() respectively
and directly call bam_data_suspend() and bam_data_resume() from function
driver suspend.

Change-Id: Icd3f2382046b890c4a445566fd8ad43f57ea1246
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent df5046b7
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