Skip to content
Commit dce26078 authored by Phil Elwell's avatar Phil Elwell Committed by Dom Cobley
Browse files

dmaengine: dw-axi-dmac: Honour snps,block-size

The snps,block-size DT property declares the maximum block size for each
channel of the dw-axi-dmac. However, the driver ignores these when
setting max_seg_size and uses MAX_BLOCK_SIZE (4096) instead.

To take advantage of the efficiencies of larger blocks, calculate the
minimum block size across all channels and use that instead.

See: https://github.com/raspberrypi/linux/issues/6256



Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.com>
parent b972e05d
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