summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorYe Li <[email protected]>2026-04-28 16:53:12 +0800
committerFabio Estevam <[email protected]>2026-05-15 17:31:39 -0300
commit6bc840568f48c2f3f562a8cb8dd6c5feddf9130c (patch)
tree55fe33fda30c44879080637675883b1ae176690b /scripts/basic
parent39f52b7c29e64233dae21c5aebd559b946665c77 (diff)
i2c: imx_lpi2c: Fix MSR status check issue in STOP
In bus_i2c_stop, the MSR SDF is checked in a loop after stop command is sent. Meanwhile, some error status in MSR is also checked by imx_lpci2c_check_clear_error. But the imx_lpci2c_check_clear_error will clear the MSR. It causes problem in below situation: In current loop, SDF does not set, but error status is found by imx_lpci2c_check_clear_error (for example, NDF), then NDF will be cleared and result has NDF error. However, because SDF does not set in this loop, it goes not next loop. When SDF is set in next loop, imx_lpci2c_check_clear_error is re-executed, but as the MSR is cleared, the result is 0. Then the stop return 0. But it should return NDF error. Signed-off-by: Ye Li <[email protected]> Reviewed-by: Peng Fan <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions