Re: [PATCH v2] pch_uart: Fix dma_sync_sg_for_device() nents value

From: Jiri Slaby
Date: Tue Jul 01 2025 - 01:15:24 EST


On 30. 06. 25, 15:13, Andy Shevchenko wrote:
On Mon, Jun 30, 2025 at 03:01:01PM +0200, Jiri Slaby wrote:
On 30. 06. 25, 14:10, Thomas Fourier wrote:
The dma_sync_sg_for_device() functions should be called with the same
nents as the dma_map_sg(), not the value the map function returned.

Care to explain why do you intend to sync more than mapped? "should be
called" is way to vague.

It's documented as the correct use of the DMA streaming API.
Should we go deeper and understand why?

That's IMO enough if he put/referenced this in the commit log...

--
js
suse labs