diff options
author | Troy Mitchell <troy.mitchell@linux.spacemit.com> | 2025-09-25 10:02:25 +0800 |
---|---|---|
committer | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2025-09-25 23:14:59 +0200 |
commit | 41d6f90ef5dc2841bdd09817c63a3d6188473b9b (patch) | |
tree | d25f5a1632d012ea2166b7383edce6f288ec87ef /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | b492183652808e0f389272bf63dc836241b287ff (diff) |
i2c: spacemit: ensure bus release check runs when wait_bus_idle() fails
spacemit_i2c_wait_bus_idle() only returns 0 on success or a negative
error code on failure.
Since 'ret' can never be positive, the final 'else' branch was
unreachable, and spacemit_i2c_check_bus_release() was never called.
This commit guarantees we attempt to release the bus whenever waiting for
an idle bus fails.
Fixes: 5ea558473fa31 ("i2c: spacemit: add support for SpacemiT K1 SoC")
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions