commit | 59f16136e4be8819ba3c626613a632a3875cb8ed | [log] [tgz] |
---|---|---|
author | Francois Berder <fberder@outlook.fr> | Fri Sep 08 18:47:46 2023 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri Sep 22 15:54:39 2023 -0400 |
tree | 964377de3602f6ccb5a2c7aa045d7230edfab3ea | |
parent | 8149ac3f2b48617074a2480df83282475c3f177d [diff] |
drivers: mediatek: Fix error handling in mtk_i2c_do_transfer Errors were handled only if an I2C transfer timed out and received a NACK which is very unlikely. This commit changes the condition such that errors are handled if an I2C transfer times out or received a NACK. Signed-off-by: Francois Berder <fberder@outlook.fr> Reviewed-by: Heiko Schocher <hs@denx.de>