Skip to content
Commit 0bbf394c authored by Jun Lin's avatar Jun Lin Committed by Marti Bolivar
Browse files

driver: i2c: npcx: don't print the err log when SMBST is zero



In the I2C ISR, it prints the error message when SMBST is set to an
unexpected value. However, we found a spurious interrupt which caused
the SoC to enter the ISR with SMBST=0. Because the spurious interrupt
will not break the I2C operation, this commit limits the error log to
print if SMBST is not equivalent to 0 to prevent a false alert.

Signed-off-by: default avatarAndrew McRae <amcrae@google.com>
Signed-off-by: default avatarJun Lin <CHLin56@nuvoton.com>
parent 604f705f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment