Re: [PATCH] spi: spi-pci1xxxx: quiesce DMA engines on transfer timeout

From: Mark Brown

Date: Wed Oct 14 2026 - 11:59:48 EST


On Tue, Sep 29, 2026 at 04:11:56PM +0800, Weibin Liu wrote:

> Stop both DMA engines, drain the pending done/abort interrupt status
> and synchronize the DMA IRQs before dropping the in-progress state and
> the transfer pointers, and re-enable the engines afterwards so that
> subsequent transfers keep working. Also make the DMA ISRs ignore
> interrupts while no transfer is in progress so that a stray MSI after
> the cleanup can no longer act on the cleared state.

Why is the sensible thing to reset both channels immediately rather than
try to let the other one complete (or time out) if it's active?

Attachment: signature.asc
Description: PGP signature