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

Skip to content
Commit 93d26059 authored by Jeff Hugo's avatar Jeff Hugo Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: bam_dmux: Fix deinit/reinit race condition



The deinit and reinit functions are used by dynamically loadable test
modules to put the bam_dmux driver in a safe state before intercepting the
calls to SPS and SMSM.  Deinit leaves bam_dmux in a state which can only be
properly cleared with a process that is inherently racy.

Tweak deinit and reinit so that a race condition is not necessary to put
bam_dmux into the test mode.  Leave bam_dmux in normal state, and not SSR
state when leaving deinit, and change reinit to allow the normal init
sequence to be used instead of introducing a different one.

Change-Id: Ib8b517e888231cf271dbac3c6d8ddce061af973f
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent 5fd9567d
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