diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2022-07-19 12:46:36 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-10-01 03:02:40 +0300 |
commit | cc3237827a21ca6fe29085a78f96b0509cf6d095 (patch) | |
tree | e06eb342a104c6dd369f6a62366562a0c88337c6 /drivers/clk/clk-gate_test.c | |
parent | 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 (diff) | |
download | linux-cc3237827a21ca6fe29085a78f96b0509cf6d095.tar.xz |
clk: vc5: Check IO access results
The devices of the versaclk clock generator family use an I2C control bus.
IO access on an I2C bus can fail for various reasons.
The driver currently ignores the return value of most IO operations. This
results in silent failure. To avoid this check the return value and in case
of an error abort the operation and propagate the error code to the caller.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20220719094637.844946-1-lars@metafoo.de
Reviewed-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-gate_test.c')
0 files changed, 0 insertions, 0 deletions