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