spi: nxp-xspi: use dmaengine_get_copy_align() API
Subsystems (3)
PATCH 1/1 spi: nxp-xspi: use dmaengine_get_copy_align() API
From: Frank Li <[email protected]>
Use the dmaengine_get_copy_align() API function instead of directly accessing rx->device->copy_align.
No functional change and prepare to move struct dma_device to private.
--- drivers/spi/spi-nxp-xspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-nxp-xspi.c +1 -1
@@ -824,7 +824,7 @@ static int nxp_xspi_dma_init(struct device *dev, struct nxp_xspi *xspi) xspi->dma_rx = rx;init_completion (&xspi->dma_rx_c); - xspi->dma_copy_align =1 << rx->device->copy_align; + xspi->dma_copy_align =1 <<dmaengine_get_copy_align (rx);return 0 ; }
Signature · 1 line
2.43.0
Quoted 17 lines · On 26/11/11 03:27PM, [email protected] wrote:
From: Frank Li <[email protected]>
Use the
dmaengine_get_copy_align()API function instead of directly accessingrx->device->copy_align.No functional change and prepare to move struct
dma_deviceto private.Signed-off-by Frank Li <[email protected]>--- drivers/spi/spi-nxp-xspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/spi/spi-nxp-xspi.c +0
-0
drivers/spi/spi-nxp-xspi.c static int nxp_xspi_dma_init(struct device *dev, struct nxp_xspi *xspi) · line 827
Quoted 5 lines
drivers/spi/spi-nxp-xspi.c +1
-1@@ -824,7 +824,7 @@ static int nxp_xspi_dma_init(struct device *dev, struct nxp_xspi *xspi) xspi->dma_rx = rx;init_completion (&xspi->dma_rx_c); - xspi->dma_copy_align =1 << rx->device->copy_align; + xspi->dma_copy_align =1 <<dmaengine_get_copy_align (rx);
Quoted 6 lines
drivers/spi/spi-nxp-xspi.c +0
-0return 0 ; }Signature · 1 line
2.43.0
Quoted 8 lines · On 11/11/26 22:27, [email protected] wrote:
From: Frank Li <[email protected]>
Use the
dmaengine_get_copy_align()API function instead of directly accessingrx->device->copy_align.No functional change and prepare to move struct
dma_deviceto private.Signed-off-by Frank Li <[email protected]>
Mark Brown
maintainerQuoted 1 line · On Wed, 11 Nov 2026 15:27:40 -0500, [email protected] wrote:
spi: nxp-xspi: use
dmaengine_get_copy_align()API
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-7.5
Thanks!
[1/1] spi: nxp-xspi: use dmaengine_get_copy_align() API
https://git.kernel.org/broonie/spi/c/172b8b7eff22
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark