diff --git a/patches.kernel.org/6.2.12-045-dmaengine-apple-admac-Set-src_addr_widths-capa.patch b/patches.kernel.org/6.2.12-045-dmaengine-apple-admac-Set-src_addr_widths-capa.patch new file mode 100644 index 0000000..678de14 --- /dev/null +++ b/patches.kernel.org/6.2.12-045-dmaengine-apple-admac-Set-src_addr_widths-capa.patch @@ -0,0 +1,42 @@ +From: =?UTF-8?q?Martin=20Povi=C5=A1er?= +Date: Fri, 24 Feb 2023 16:22:22 +0100 +Subject: [PATCH] dmaengine: apple-admac: Set src_addr_widths capability +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +References: bsc#1012628 +Patch-mainline: 6.2.12 +Git-commit: 6e96adcaa7a29827ac8ee8df290a44957a4823ec + +[ Upstream commit 6e96adcaa7a29827ac8ee8df290a44957a4823ec ] + +Add missing setting of 'src_addr_widths', which is the same as for the +other direction. + +Fixes: b127315d9a78 ("dmaengine: apple-admac: Add Apple ADMAC driver") +Signed-off-by: Martin PoviĊĦer +Link: https://lore.kernel.org/r/20230224152222.26732-3-povik+lin@cutebit.org +Signed-off-by: Vinod Koul +Signed-off-by: Sasha Levin +Signed-off-by: Jiri Slaby +--- + drivers/dma/apple-admac.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/drivers/dma/apple-admac.c b/drivers/dma/apple-admac.c +index 00cbfafe..b9132b49 100644 +--- a/drivers/dma/apple-admac.c ++++ b/drivers/dma/apple-admac.c +@@ -858,6 +858,9 @@ static int admac_probe(struct platform_device *pdev) + + dma->directions = BIT(DMA_MEM_TO_DEV) | BIT(DMA_DEV_TO_MEM); + dma->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; ++ dma->src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | ++ BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) | ++ BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); + dma->dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | + BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) | + BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); +-- +2.35.3 + diff --git a/series.conf b/series.conf index 1d8a475..eca1f43 100644 --- a/series.conf +++ b/series.conf @@ -2272,6 +2272,7 @@ patches.kernel.org/6.2.12-042-bpf-tcp-Use-sock_gen_put-instead-of-sock_put-i.patch patches.kernel.org/6.2.12-043-LoongArch-bpf-Fix-jit-to-skip-speculation-barr.patch patches.kernel.org/6.2.12-044-dmaengine-apple-admac-Handle-global-interrupt-.patch + patches.kernel.org/6.2.12-045-dmaengine-apple-admac-Set-src_addr_widths-capa.patch ######################################################## # Build fixes that apply to the vanilla kernel too.