mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-10 23:12:48 +00:00
3a5584e0df
Adds latest 6.6 patches from the Raspberry Pi repository.
These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.6.y/
With the following command:
git format-patch -N v6.6.67..HEAD
(HEAD -> 811ff707533bcd67cdcd368bbd46223082009b12)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(cherry picked from commit 692205305d
)
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 5cf7209c294a58029984880d4858e2d3c7e46a3c Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Thu, 19 Sep 2024 18:12:12 +0100
|
|
Subject: [PATCH] spi: dw: Let the DMAC set the transfer widths
|
|
|
|
SPI transfers are of defined length, unlike some UART traffic, so it is
|
|
safe to let the DMA controller choose a suitable memory width.
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
drivers/spi/spi-dw-dma.c | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
--- a/drivers/spi/spi-dw-dma.c
|
|
+++ b/drivers/spi/spi-dw-dma.c
|
|
@@ -330,7 +330,6 @@ static int dw_spi_dma_config_tx(struct d
|
|
txconf.direction = DMA_MEM_TO_DEV;
|
|
txconf.dst_addr = dws->dma_addr;
|
|
txconf.dst_maxburst = dws->txburst;
|
|
- txconf.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
|
|
txconf.dst_addr_width = dw_spi_dma_convert_width(dws->n_bytes);
|
|
txconf.device_fc = false;
|
|
|
|
@@ -431,7 +430,6 @@ static int dw_spi_dma_config_rx(struct d
|
|
rxconf.direction = DMA_DEV_TO_MEM;
|
|
rxconf.src_addr = dws->dma_addr;
|
|
rxconf.src_maxburst = dws->rxburst;
|
|
- rxconf.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
|
|
rxconf.src_addr_width = dw_spi_dma_convert_width(dws->n_bytes);
|
|
rxconf.device_fc = false;
|
|
|