Skip to content
Snippets Groups Projects
Commit c6531494 authored by Benjamin Gaignard's avatar Benjamin Gaignard Committed by Sebastien Pasdeloup
Browse files

st: pmic: initialize i2c_state


Make sure that i2c->i2c_state is correctly initialized
with I2C_STATE_RESET value this avoid hi2c->lock to not
be set to 0 when calling stm32_i2c_init during platform
suspend/resume operations.

Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@st.com>
Change-Id: I3b4c1f9115589325eb256789a1764c322741db7d
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/161037


Reviewed-by: default avatarCITOOLS <smet-aci-reviews@lists.codex.cro.st.com>
Reviewed-by: default avatarCIBUILD <smet-aci-builds@lists.codex.cro.st.com>
Reviewed-by: default avatarNicolas LE BAYON <nicolas.le.bayon@st.com>
Reviewed-by: default avatarYann GAUTIER <yann.gautier@st.com>
parent 1c7c2ca8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment