From: Frank.Li@oss.nxp.com
To: Han Xu <han.xu@nxp.com>, Haibo Chen <haibo.chen@nxp.com>,
Mark Brown <broonie@kernel.org>,
linux-spi@vger.kernel.org (open list:NXP XSPI DRIVER),
imx@lists.linux.dev (open list:NXP XSPI DRIVER),
linux-kernel@vger.kernel.org (open list)
Cc: imx@lists.linux.dev, Frank Li <Frank.Li@nxp.com>
Subject: [PATCH 1/1] spi: nxp-xspi: use dmaengine_get_copy_align() API
Date: Wed, 11 Nov 2026 15:27:40 -0500 [thread overview]
Message-ID: <20261111202741.3866239-1-Frank.Li@oss.nxp.com> (raw)
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
next reply other threads:[~2026-11-11 20:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 20:27 Frank.Li [this message]
2026-11-11 22:06 ` han.xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261111202741.3866239-1-Frank.Li@oss.nxp.com \
--to=frank.li@oss.nxp.com \
--cc=Frank.Li@nxp.com \
--cc=broonie@kernel.org \
--cc=haibo.chen@nxp.com \
--cc=han.xu@nxp.com \
--cc=imx@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®