Re: [PATCH v5 2/3] spi: tegra210-quad: Refactor error handling into helper functions

From: Thierry Reding
Date: Mon Nov 03 2025 - 09:25:11 EST


On Tue, Oct 28, 2025 at 03:57:02PM +0000, Vishwaroop A wrote:
> 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@xxxxxxxxxx>
> ---
> drivers/spi/spi-tegra210-quad.c | 84 +++++++++++++++++----------------
> 1 file changed, 44 insertions(+), 40 deletions(-)

Acked-by: Thierry Reding <treding@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature