Skip to content
Commit 1fa81c27 authored by Sascha Hauer's avatar Sascha Hauer
Browse files

dmaengine i.MX sdma: check sg entries for valid addresses and lengths



This patch lets sdma_prep_slave_sg fail if the entries of an
sg list do not start on multiples of the word size or if the
lengths are not multiple of the word size.
Also, catch the previously unhandled DMA_SLAVE_BUSWIDTH_8_BYTES
and DMA_SLAVE_BUSWIDTH_UNDEFINED cases.

Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent b9b3f82f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment