All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

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.