Re: [PATCH 4/8] drm/panthor: Store IRQ register base iomem pointer in panthor_irq

Boris Brezillon
2026-04-10T17:53:29Z

On Fri, 10 Apr 2026 17:46:33 +0100
Karunika Choo <karunika.choo@arm.com> wrote:

> static int panthor_request_ ## __name ## _irq(struct panthor_device *ptdev, \
> struct panthor_irq *pirq, \
> - int irq, u32 mask) \
> + int irq, u32 mask, u32 irq_baseaddr) \

Can we pass the void __iomem * directly instead of an offset to apply
to ptdev->iomem?

> { \
> pirq->ptdev = ptdev; \
> pirq->irq = irq; \
> pirq->mask = mask; \
> + pirq->iomem = ptdev->iomem + irq_baseaddr; \