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:
Jeffrey Hugo <jhugo@codeaurora.org>
Loading
Please register or sign in to comment