Skip to content

Commit c752e87

Browse files
Jon Linbroonie
authored andcommitted
spi: rockchip-sfc: Embedded DMA only support 4B aligned address
Controller limitations. Signed-off-by: Jon Lin <jon.lin@rock-chips.com> Link: https://patch.msgid.link/20241118145646.2609039-1-jon.lin@rock-chips.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 26470a2 commit c752e87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-rockchip-sfc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ static int rockchip_sfc_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op
503503
rockchip_sfc_adjust_op_work((struct spi_mem_op *)op);
504504
rockchip_sfc_xfer_setup(sfc, mem, op, len);
505505
if (len) {
506-
if (likely(sfc->use_dma) && len >= SFC_DMA_TRANS_THRETHOLD) {
506+
if (likely(sfc->use_dma) && len >= SFC_DMA_TRANS_THRETHOLD && !(len & 0x3)) {
507507
init_completion(&sfc->cp);
508508
rockchip_sfc_irq_unmask(sfc, SFC_IMR_DMA);
509509
ret = rockchip_sfc_xfer_data_dma(sfc, op, len);

0 commit comments

Comments
 (0)