]> asedeno.scripts.mit.edu Git - linux.git/commit
irqchip/irq-mvebu-icu: Fix wrong private data retrieval
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 1 Oct 2018 14:13:47 +0000 (16:13 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 2 Oct 2018 10:59:31 +0000 (11:59 +0100)
commit2b4dab69dcca13c5be2ddaf1337ae4accd087de6
tree63e83961dc741ffd9a7bbffe21ab10ea767d9d71
parent018ea8475b601a625ed2bdb8ab62f6b3aafecb9d
irqchip/irq-mvebu-icu: Fix wrong private data retrieval

The irq_domain structure has an host_data pointer that just stores
private data. It is meant to not be touched by the IRQ core. However,
when it comes to MSI, the MSI layer adds its own private data there
with a structure that also has a host_data pointer.

Because this IRQ domain is an MSI domain, to access private data we
should do a d->host_data->host_data, also wrapped as
'platform_msi_get_host_data()'.

This bug was lying there silently because the 'icu' structure retrieved
this way was just called by dev_err(), only producing a
'(NULL device *):' output on the console.

Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-mvebu-icu.c