commit | 7bb38708bb197895feee8b0a291df8936e99a44a | [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 12:26:30 2023 +0000 |
tree | b3d271b764a08765bf2314ccf52b830fc966d94e | |
parent | d6ac34104af819bfb5ca06355bd996a66fedacd4 [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: 263719061 Bug: 265652865 Test: build pass Merged-In: I9ddc2a26e148575a82015748698e5dfe165ea901 Change-Id: I9ddc2a26e148575a82015748698e5dfe165ea901