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

Skip to content
Commit d8aa0fd5 authored by Jack Pham's avatar Jack Pham
Browse files

usb: pd: Avoid dual_role_instance_changed() if nothing changed



We call this notifier on the dual_role_usb class instance to
report any changes in state such as data role and power role.
But if we are already in explicit contract and return to either
PE_SRC_Ready or PE_SNK_Ready states, then that means the power
role has not changed, so there is no need to update the dual_role
instance. This will avoid a 2 second system wakeup timer which
will delay allowing the system to suspend.

Change-Id: I0ba6dc8903b7a010735be4e73e609e7aefa19d96
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 2baec134
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