msm:cci: Add protection for race condition in cci queue access
If two sensors are connected to the same CCI bus they start to
write to this bus asynchronously. In some cases first sensor
will start to write to the bus whle the second sensor call
cci init function. Such race condition causes cci queue timeout
To avoid such race condition cci init needs to be protected
with queue mutexes.
Change-Id: Ie8acf1c6543475a5b0b494c826d4af47573d0db3
Signed-off-by:
Iliya Varadzhakov <ivarad@codeaurora.org>
Loading
Please register or sign in to comment