Re: [PATCH] fbdev: via: return an error when DMA copy times out

Helge Deller <[email protected]>
Newsgroups org.kernel.vger.linux-fbdev,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
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 <[email protected]>
> ---
>   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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.