]> git.baikalelectronics.ru Git - kernel.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)
commit4844915344851c38b48e5dbc480545f092ce95bd
tree63e83961dc741ffd9a7bbffe21ab10ea767d9d71
parent9512e0ed379430d9e36b4ed7ec74b114c0e991b7
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