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

Skip to content
Commit ad8dbf8e authored by Hemant Kumar's avatar Hemant Kumar
Browse files

mhi: core: Handle write lock properly in mhi_pm_m0_transition



Take write lock only to protect db_mode member of mhi channel.
This allows rest of the mhi channels to just take read lock which
fine grains the locking. It prevents channel readers to starve if
they try to enter critical section after a writer.

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