Commit c27123d8 authored by Xu Han's avatar Xu Han
Browse files

Add mutex for I2C device power up



I2C devices share VIO and buses.

Camera may fail to open to multiple I2C device enable
calls are interleaved. It is because the power up
sequence cannot be guaranteed when shared voltages
are controlled by multiple devices.

The issue reproduce rate is much higher when userspace
parallelize device power up.(Sem1215 I2C failure.)

The issue is fixed after locking power up sequence for
I2C devices.

Bug: 187078413
Test: CTS

Signed-off-by: default avatarXu Han <xuhanyz@google.com>
Change-Id: I05405f024307d98117e78b8bc9cb5bd44112aad2
parent cae2481f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment