Re: [PATCH 1/1] drm: xlnx: zynqmp_disp: use dmaengine_get_copy_align() accessor
From: Tomi Valkeinen
Date: Thu Nov 12 2026 - 05:40:40 EST
Hi,
On 12/11/2026 01:16, Laurent Pinchart wrote:
On Wed, Nov 11, 2026 at 03:07:37PM -0500, Frank.Li@xxxxxxxxxxx wrote:
From: Frank Li <Frank.Li@xxxxxxx>
Use the dmaengine_get_copy_align() helper instead of directly accessing
the copy_align field from the DMA device structure.
No functional change and prepare to move struct dma_device to private.
Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
Reviewed-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
Tomi, I assume you'll push this to drm-misc. Please let me know if
that's not correct.
Yes, I'll pick this up.
Tomi
---
drivers/gpu/drm/xlnx/zynqmp_disp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers/gpu/drm/xlnx/zynqmp_disp.c
index e998f22686748..0753236b9546a 100644
--- a/drivers/gpu/drm/xlnx/zynqmp_disp.c
+++ b/drivers/gpu/drm/xlnx/zynqmp_disp.c
@@ -1433,7 +1433,7 @@ int zynqmp_disp_probe(struct zynqmp_dpsub *dpsub)
struct zynqmp_disp_layer *layer;
layer = &disp->layers[ZYNQMP_DPSUB_LAYER_VID];
- dpsub->dma_align = 1 << layer->dmas[0].chan->device->copy_align;
+ dpsub->dma_align = 1 << dmaengine_get_copy_align(layer->dmas[0].chan);
}
dpsub->disp = disp;