commit | 8cf61051ae6e13e253de0d18501c196bc70522fc | [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 | c5b42e3e9e757ab44da3006e713d8d02b65aa9fe [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>