layerscape: add patches-5.4
[openwrt/staging/mkresin.git] / target / linux / layerscape / patches-5.4 / 806-dma-0027-dma-caam-fix-compilation-error.patch
1 From ced02a1fdc5d9d394bffe4427021de238a0ad697 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Horia=20Geant=C4=83?= <horia.geanta@nxp.com>
3 Date: Fri, 4 Oct 2019 14:07:03 +0300
4 Subject: [PATCH] dma: caam: fix compilation error
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Fix compilation error, introduced by incorrect rebase of the
10 commit 9c51c141264c ("dma: caam: add dma memcpy driver"
11 on top of upstream
12 commit 1bcdf5a00f41 ("crypto: caam - make CAAM_PTR_SZ dynamic")
13
14 Fixes: 9c51c141264c ("dma: caam: add dma memcpy driver")
15 Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
16 ---
17 drivers/dma/caam_dma.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 --- a/drivers/dma/caam_dma.c
21 +++ b/drivers/dma/caam_dma.c
22 @@ -47,7 +47,7 @@
23 #include "../crypto/caam/error.h"
24 #include "../crypto/caam/desc_constr.h"
25
26 -#define DESC_DMA_MEMCPY_LEN ((CAAM_DESC_BYTES_MAX - DESC_JOB_IO_LEN) / \
27 +#define DESC_DMA_MEMCPY_LEN ((CAAM_DESC_BYTES_MAX - DESC_JOB_IO_LEN_MIN) / \
28 CAAM_CMD_SZ)
29
30 /*