commit | e449f5a6772f417d3c340677d58231e09acca2ad | [log] [tgz] |
---|---|---|
author | Arach MOHAMMED BRAHIM <arach.mohammed.brahim@st.com> | Fri Feb 03 16:54:21 2023 +0100 |
committer | Jack Yu <jackcwyu@google.com> | Mon Feb 06 08:02:39 2023 +0000 |
tree | 97886572141e18c75c35bb25185ff6666c7b2b66 | |
parent | 02190577e46672d72f7be627ab37c88740cd9b29 [diff] |
Use mutex to protect mIsActiveRW variable. This is to prevent a possible race run between the PROP_MON_NTF and the call from i2cWrite function. Also reset the mIsActiveRW flag when a CORE_RESET_NTF is received. Bug: 265652865 Test: build pass Change-Id: I9ddc2a26e148575a82015748698e5dfe165ea901