mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 1/2] tty: serial: pch_uart: replace chan->device->dev with dmaengine_get_provider_device()
@ 2026-11-04 14:52 Frank.Li
  2026-11-04 14:52 ` [PATCH v2 2/2] tty: serial: 8250: " Frank.Li
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Frank.Li @ 2026-11-04 14:52 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Andy Shevchenko, Frank Li,
	John Ogness, Mike Rapoport (Microsoft),
	Zhaoyang Yu, Haoxiang Li, open list:TTY LAYER AND SERIAL DRIVERS,
	open list:TTY LAYER AND SERIAL DRIVERS
  Cc: imx

From: Frank Li <Frank.Li@nxp.com>

Use the dmaengine_get_provider_device() API instead of directly
accessing chan->device->dev to get the DMA provider device.

No functional change. Prepare make to struct dma_device private to the DMA
engine.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
change in v2
- split pch_uart.c to new patch
- fix indentation
---
 drivers/tty/serial/pch_uart.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c
index 9505d255f09c5..c53e6b46de4d7 100644
--- a/drivers/tty/serial/pch_uart.c
+++ b/drivers/tty/serial/pch_uart.c
@@ -655,8 +655,8 @@ static bool filter(struct dma_chan *chan, void *slave)
 {
 	struct pch_dma_slave *param = slave;
 
-	if ((chan->chan_id == param->chan_id) && (param->dma_dev ==
-						  chan->device->dev)) {
+	if ((chan->chan_id == param->chan_id) &&
+	    (param->dma_dev == dmaengine_get_provider_device(chan))) {
 		chan->private = param;
 		return true;
 	} else {
-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-04 20:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 14:52 [PATCH v2 1/2] tty: serial: pch_uart: replace chan->device->dev with dmaengine_get_provider_device() Frank.Li
2026-11-04 14:52 ` [PATCH v2 2/2] tty: serial: 8250: " Frank.Li
2026-11-04 20:52   ` Andy Shevchenko
2026-11-04 20:49 ` [PATCH v2 1/2] tty: serial: pch_uart: " Andy Shevchenko
2026-11-04 20:50 ` Andy Shevchenko

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®