* [PATCH 1/1] spi: nxp-xspi: use dmaengine_get_copy_align() API
@ 2026-11-11 20:27 Frank.Li
2026-11-11 22:06 ` han.xu
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Frank.Li @ 2026-11-11 20:27 UTC (permalink / raw)
To: Han Xu, Haibo Chen, Mark Brown, open list:NXP XSPI DRIVER,
open list:NXP XSPI DRIVER, open list
Cc: imx, Frank Li
From: Frank Li <Frank.Li@nxp.com>
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.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
drivers/spi/spi-nxp-xspi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-nxp-xspi.c b/drivers/spi/spi-nxp-xspi.c
index e532b2da54835..e8383fed461e5 100644
--- a/drivers/spi/spi-nxp-xspi.c
+++ b/drivers/spi/spi-nxp-xspi.c
@@ -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;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 1/1] spi: nxp-xspi: use dmaengine_get_copy_align() API
2026-11-11 20:27 [PATCH 1/1] spi: nxp-xspi: use dmaengine_get_copy_align() API Frank.Li
@ 2026-11-11 22:06 ` han.xu
2026-11-12 6:28 ` Daniel Baluta
2026-11-12 17:52 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: han.xu @ 2026-11-11 22:06 UTC (permalink / raw)
To: Frank.Li
Cc: Han Xu, Haibo Chen, Mark Brown, open list:NXP XSPI DRIVER,
open list:NXP XSPI DRIVER, open list, Frank Li
On 26/11/11 03:27PM, Frank.Li@oss.nxp.com wrote:
> From: Frank Li <Frank.Li@nxp.com>
>
> 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.
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
> drivers/spi/spi-nxp-xspi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/spi/spi-nxp-xspi.c b/drivers/spi/spi-nxp-xspi.c
> index e532b2da54835..e8383fed461e5 100644
> --- a/drivers/spi/spi-nxp-xspi.c
> +++ b/drivers/spi/spi-nxp-xspi.c
> @@ -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);
Acked-by: Han Xu <han.xu@nxp.com>
>
> return 0;
> }
> --
> 2.43.0
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] spi: nxp-xspi: use dmaengine_get_copy_align() API
2026-11-11 20:27 [PATCH 1/1] spi: nxp-xspi: use dmaengine_get_copy_align() API Frank.Li
2026-11-11 22:06 ` han.xu
@ 2026-11-12 6:28 ` Daniel Baluta
2026-11-12 17:52 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Baluta @ 2026-11-12 6:28 UTC (permalink / raw)
To: Frank.Li, Han Xu, Haibo Chen, Mark Brown,
open list:NXP XSPI DRIVER, open list:NXP XSPI DRIVER, open list
Cc: Frank Li
On 11/11/26 22:27, Frank.Li@oss.nxp.com wrote:
> From: Frank Li <Frank.Li@nxp.com>
>
> 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.
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] spi: nxp-xspi: use dmaengine_get_copy_align() API
2026-11-11 20:27 [PATCH 1/1] spi: nxp-xspi: use dmaengine_get_copy_align() API Frank.Li
2026-11-11 22:06 ` han.xu
2026-11-12 6:28 ` Daniel Baluta
@ 2026-11-12 17:52 ` Mark Brown
2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2026-11-12 17:52 UTC (permalink / raw)
To: Han Xu, Haibo Chen, linux-spi, imx, linux-kernel, Frank.Li; +Cc: imx, Frank Li
On Wed, 11 Nov 2026 15:27:40 -0500, Frank.Li@oss.nxp.com 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-12 19:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-11 20:27 [PATCH 1/1] spi: nxp-xspi: use dmaengine_get_copy_align() API Frank.Li
2026-11-11 22:06 ` han.xu
2026-11-12 6:28 ` Daniel Baluta
2026-11-12 17:52 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.