commit | c126f7c3b8c41f5ca146e52e70ae927e3be30060 | [log] [tgz] |
---|---|---|
author | Dmitry Osipenko <digetx@gmail.com> | Mon Mar 29 22:55:30 2021 +0300 |
committer | Wolfram Sang <wsa@kernel.org> | Wed Mar 31 10:01:23 2021 +0200 |
tree | 67af6989f5dd8433984d56f1072e0b8622d47c9d | |
parent | 8f66edb25c4e10f8380c88f4c097158ff611fd10 [diff] |
i2c: Make i2c_recover_bus() to return -EBUSY if bus recovery unimplemented The i2c_recover_bus() returns -EOPNOTSUPP if bus recovery isn't wired up by the bus driver, which the case for Tegra I2C driver for example. This error code is then propagated to I2C client and might be confusing, thus make i2c_recover_bus() to return -EBUSY instead. Suggested-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>