diff options
| author | Wenyuan Li <2063309626@qq.com> | 2026-04-01 08:09:31 +0300 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-06-17 13:30:16 +0300 |
| commit | f5f40b828179361862cac6c9d3c0e975e573dc3e (patch) | |
| tree | dd4bdf7aca322398384f0b565059227dbc16576d /include/linux | |
| parent | 87ee329b0a63a319add677e077e1c08a6ec43cb0 (diff) | |
| download | linux-f5f40b828179361862cac6c9d3c0e975e573dc3e.tar.xz | |
mfd: tps65910: Add error handling for dummy I2C transfer in probe
In tps65910_i2c_probe(), a dummy I2C transfer is performed to work
around silicon erratum SWCZ010. However, the return value of
i2c_master_send() is not checked.
If this dummy transfer fails, the driver continues execution without
detecting the error. This may lead to subsequent I2C operations also
failing, but the driver would incorrectly report success.
Add proper return value checking for the dummy I2C transfer. If the
transfer fails, log the error and return an appropriate error code
to the caller.
Signed-off-by: Wenyuan Li <2063309626@qq.com>
Link: https://patch.msgid.link/tencent_01102156392EC89EDF2CA22A7C8B4ABB2509@qq.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
