Re: [PATCH] fbdev: via: return an error when DMA copy times out
From: Helge Deller
Date: Thu Jun 25 2026 - 12:36:54 EST
On 6/24/26 16:43, Pengpeng Hou wrote:
viafb_dma_copy_out_sg() logs a VIA DMA timeout when the DONE bit is not
set after the completion wait and grace delay, but still returns success
to the caller.
Preserve the existing cleanup sequence and return -ETIMEDOUT when the DMA
engine did not report completion.
Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>
---
drivers/video/fbdev/via/via-core.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
Note that the return value isn't checked by the caller.
Nevertheless, it's a cleanup, so I applied it.
Thanks!
Helge