Re: [PATCH] dmaengine: at_xdmac: handle empty transfer list in tx_status
From: Ziheng Wei
Date: Tue Nov 17 2026 - 14:14:08 EST
On Tue, Nov 17, 2026 at 01:17:18PM -0500, Frank Li wrote:
> suppose below patch can fix this problem
> https://lore.kernel.org/dmaengine/avdni52GEjf_B3vE@lizhi-Precision-Tower-5810/
Hi Frank,
Thank you for the pointer. It looks like the same empty-list issue in
the Xilinx driver, and the list_first_entry_or_null() guard is also
what this patch uses in at_xdmac_tx_status().
Since my issue arises after terminate_all() empties xfers_list in the
at_xdmac driver, I am not sure whether you meant the Xilinx patch as a
reference for the guard, or had another suggestion in mind. I would
appreciate any clarification.
Thanks,
Ziheng