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

Skip to content
Commit c42388b5 authored by Jeff Hugo's avatar Jeff Hugo
Browse files

soc: qcom: smem: Allow accesses to SMEM_SPINLOCK_ARRAY before probe done



There is a circular dependency between the SMEM driver and the remote
spinlock driver when the software locks are used.  SMEM requires the remote
spinlocks to be initialized before probe completes, but initializing the
software locks requires access to the SMEM_SPINLOCK_ARRAY smem item.  This
is a problem as access to smem items is gated by the completetion of SMEM's
probe().

Add some intelligence into the public API to allow accesses to the
SMEM_SPINLOCK_ARRAY before SMEM's probe() completes for the purpose of a
workaround to the circular dependency.

Change-Id: I4896d5589b6ebd7cc8e71f1b6162bb28e4107968
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent 9c6389a6
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