Commit c3327408 authored by Lionel Debieve's avatar Lionel Debieve Committed by Yann Gautier
Browse files

fix(drivers/mtd): macronix quad enable bit issue



Invert test logic on the status register control to
fix issue when the bit SR_QUAD_EN_MX is not set.

Change-Id: I8b2f140219f124336bf96462abf9d9445d0308bc
Signed-off-by: default avatarLionel Debieve <lionel.debieve@st.com>
Signed-off-by: default avatarYann Gautier <yann.gautier@st.com>
parent 5130ad14
......@@ -131,7 +131,7 @@ static int spi_nor_macronix_quad_enable(void)
return ret;
}
if ((sr & SR_QUAD_EN_MX) == 0U) {
if ((sr & SR_QUAD_EN_MX) != 0U) {
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment