Skip to content
Commit 85b6ff0b authored by Daniel Baluta's avatar Daniel Baluta Committed by Benjamin Cabé
Browse files

drivers: dma: sdma: Make access to DMA channel stats atomic



DMA channel stats like pending_length or free is not protected
and can be modified in parallel by a consumer and a producer.

This can result in non-atomic updates which in turn will result
in using stale data.

Fix this by making regions of code accessing dma stats atomic.

Fixes: e94c86f3 ("drivers: dma: Add initial support for NXP SDMA")
Signed-off-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
parent 312ff1c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment