• Lars-Peter Clausen's avatar
    dmaengine: axi-dmac: Discover length alignment requirement · a5b20600
    Lars-Peter Clausen authored
    Starting with version 4.1.a the AXI-DMAC is capable of reporting the
    required length alignment.
    
    The LSBs that are required to be set for alignment will always read back as
    set from the transfer length register. It is not possible to clear them by
    writing a 0. This means the driver can discover the length alignment
    requirement by writing 0 to that register and reading back the value.
    
    Since the DMA will support length alignment requirements that are different
    from the address alignment requirement track both of them independently.
    
    For older versions of the peripheral assume that the length alignment
    requirement is equal to the address alignment requirement.
    Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
    Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
    a5b20600
dma-axi-dmac.c 21.4 KB