Re: [PATCH V2 6/8] dmaengine: zynqmp_dma: Use of_dma_is_coherent for dma-coherent
Frank Li <[email protected]>
| Newsgroups | org.kernel.vger.dmaengine,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <an9MLmA5ndm-eYKL@SMW015318> |
On Fri, Aug 14, 2026 at 10:26:14AM +0530, Golla Nagendra wrote: > Use of_dma_is_coherent() instead of parsing the common dma-coherent > device-tree property directly. > > Signed-off-by: Golla Nagendra <[email protected]> > --- Reviewed-by: Frank Li <[email protected]> > changes in v2: > - Added as a dedicated patch based on review feedback to use of_dma_is_coherent() > for the common dma-coherent property > --- > drivers/dma/xilinx/zynqmp_dma.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c > index 5e81e0d950e8..194abfd6cb25 100644 > --- a/drivers/dma/xilinx/zynqmp_dma.c > +++ b/drivers/dma/xilinx/zynqmp_dma.c > @@ -12,6 +12,7 @@ > #include <linux/io.h> > #include <linux/module.h> > #include <linux/of.h> > +#include <linux/of_address.h> > #include <linux/of_dma.h> > #include <linux/platform_device.h> > #include <linux/slab.h> > @@ -947,7 +948,7 @@ static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev, > if (match_data) > chan->irq_offset = match_data->offset; > > - chan->is_dmacoherent = of_property_read_bool(node, "dma-coherent"); > + chan->is_dmacoherent = of_dma_is_coherent(node); > zdev->chan = chan; > tasklet_setup(&chan->tasklet, zynqmp_dma_do_tasklet); > spin_lock_init(&chan->lock); > -- > 2.44.4 >