[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6947bdc7-cbcc-4a5b-a6f4-8d213f1cda4d@kernel.org>
Date: Fri, 26 Jul 2024 11:12:50 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Abin Joseph <abin.joseph@....com>, vkoul@...nel.org,
michal.simek@....com, robh@...nel.org, u.kleine-koenig@...gutronix.de,
krzk+dt@...nel.org, conor+dt@...nel.org, radhey.shyam.pandey@....com,
harini.katakam@....com
Cc: git@....com, dmaengine@...r.kernel.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] dmaengine: zynqmp_dma: Add support for AMD Versal Gen
2 DMA IP
On 26/07/2024 08:26, Abin Joseph wrote:
> ZynqMp DMA IP and AMD Versal Gen 2 DMA IP are similar but have different
> interrupt register offset. Create a dedicated compatible string to
> support Versal Gen 2 DMA IP with Irq register offset for interrupt
> Enable/Disable/Status/Mask functionality.
>
>
> /**
> @@ -919,6 +924,9 @@ static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev,
> return -EINVAL;
> }
>
> + if (of_device_is_compatible(node, "amd,versal2-dma-1.0"))
> + chan->irq_offset = IRQ_REG_OFFSET;
Do not sprinkle compatibles, but use match data.
Best regards,
Krzysztof
Powered by blists - more mailing lists