Thread (61 messages) 61 messages, 7 authors, 2022-02-22

Re: [PATCH 10/11] PCI: mvebu: Implement support for legacy INTx interrupts

From: Marc Zyngier <maz@kernel.org>
Date: 2022-01-06 17:31:51
Also in: linux-pci, lkml

On Thu, 06 Jan 2022 17:20:44 +0000,
Marek Behún [off-list ref] wrote:
On Thu, 06 Jan 2022 16:27:44 +0000
Marc Zyngier [off-list ref] wrote:
quoted
You are completely missing my point. I'm talking about data
structures, you're talking about interrupts. You have this:

struct mvebu_pcie_port {
       // Tons of stuff
       struct irq_chip intx_chip;
};

What I want you to do is:

struct mvebu_pcie_port {
       // Tons of stuff
};

static struct irq_chip intx_chip = {
	.name		= "INTx",
	.irq_mask	= mvebu_pcie_intx_irq_mask,
	.irq_unmask	= mvebu_pcie_intx_irq_unmask;
};

That's it. No more, no less.

	M.
Hmm, but struct irq_chip contains a dynamic member,
  struct device *parent_device;
Isn't that used? Or are you planning to kill it?
Indeed, and I am definitely planning to kill it. This is the wrong
place for this stuff, and I want it gone. There are thankfully very
few users of this misfeature.

	M.

-- 
Without deviation from the norm, progress is not possible.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help