]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: dw-mmio: add error handling for reset_control_deassert()
authorArtem Shimko <a.shimko.dev@gmail.com>
Tue, 7 Oct 2025 10:11:33 +0000 (13:11 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 7 Oct 2025 12:19:49 +0000 (13:19 +0100)
commit18a5f1af596e6ba22cd40ada449063041f3ce6d4
treea932a9fc93eb027c933780836545ef9e88dda20b
parentee795e82e10197c070efd380dc9615c73dffad6c
spi: dw-mmio: add error handling for reset_control_deassert()

Currently reset_control_deassert() is called without checking its
return value. This can lead to silent failures when reset deassertion
fails.

Add proper error handling to:
1. Check the return value of reset_control_deassert()
2. Return the error to the caller
3. Provide meaningful error message using dev_err_probe()

This ensures that reset-related failures are properly reported during
probe and helps with debugging reset issues.

Signed-off-by: Artem Shimko <a.shimko.dev@gmail.com>
Link: https://patch.msgid.link/20251007101134.1912895-1-a.shimko.dev@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-mmio.c