public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RFC: fake IRQchip
@ 2024-03-08 14:37 Sebastian Fricke
  2024-03-09 10:03 ` Marc Zyngier
  0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Fricke @ 2024-03-08 14:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: tglx, maz, bartosz.golaszewski

Hey,

I am one of the maintainers of the media subsystem and we are currently
reviewing a patch [1], where the author has developed a polling
mechanism for a driver, while the hardware (Wave5 Codec) actually always
expects an interrupt line to be present and the only reason why this
isn't uphold is because the SoC has a defect, causing the interrupt line
to be disabled.
As I am a bit reluctant to litter a driver with workarounds for defective
hardware, I suggested to the author, that he could implement fake
IRQchip, which does polling in the background. This could first be
implemented in the driver directory and then later possibly upstreamed
to /drivers/irqchip.
So, far I've got a few approving comments for that idea, but I would
really like to know what the irqchip folks think about this.

Now my question is basically, what do you think about such a solution? Would
you accept such a fake irqchip driver, that can be used by
hardware without an interrupt line to fake one? Do you think there is a
better solution or do you think that my suggestion has hidden traps?

Thomas has already pointed me to IRQ sim, any further help is highly
appreciated.

[1][https://patchwork.linuxtv.org/project/linux-media/patch/20240125130833.1953617-1-devarsht@ti.com/#155281]

Greetings,
Sebastian

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

end of thread, other threads:[~2024-03-13 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-08 14:37 RFC: fake IRQchip Sebastian Fricke
2024-03-09 10:03 ` Marc Zyngier
2024-03-13 16:24   ` Sebastian Fricke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox