commit | bd9ca8d71ede88234b62766722b7957e3f0b9c6d | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Feb 16 20:24:39 2019 -0700 |
committer | Bin Meng <bmeng.cn@gmail.com> | Wed Feb 20 15:21:44 2019 +0800 |
tree | b352295e81605c95099b30ba3573a6e356dac79a | |
parent | 7e75aba32d709de1991041d20675b58edf891927 [diff] |
i2c: designware: Add error checking on init At present this driver does not check whether it is able to actually communicate with the I2C controller. It prints a timeout message but still considers the probe to be successful. To fix this, add some checking that the init succeeds. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Heiko Schocher <hs@denx.de>