]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: tegra210-quad: Refactor error handling into helper functions
authorVishwaroop A <va@nvidia.com>
Tue, 28 Oct 2025 15:57:02 +0000 (15:57 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 4 Nov 2025 16:48:54 +0000 (16:48 +0000)
commit6022eacdda8b0b06a2e1d4122e5268099b62ff5d
treeae37eb8ea3605b6013a48400847c866cfed8453d
parentb4e002d8a7cee3b1d70efad0e222567f92a73000
spi: tegra210-quad: Refactor error handling into helper functions

Extract common cleanup code into dedicated helper functions to simplify
the code and improve readability. This refactoring includes:

- tegra_qspi_reset(): Device reset and interrupt cleanup
- tegra_qspi_dma_stop(): DMA termination and disable
- tegra_qspi_pio_stop(): PIO mode disable

No functional changes. This is purely a code reorganization to prepare
for improved timeout handling in subsequent patches.

Signed-off-by: Vishwaroop A <va@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20251028155703.4151791-3-va@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra210-quad.c