Skip to content

Commit 2b4dab6

Browse files
miquelraynalMarc Zyngier
authored andcommitted
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>
1 parent 018ea84 commit 2b4dab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-mvebu-icu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static int
105105
mvebu_icu_irq_domain_translate(struct irq_domain *d, struct irq_fwspec *fwspec,
106106
unsigned long *hwirq, unsigned int *type)
107107
{
108-
struct mvebu_icu *icu = d->host_data;
108+
struct mvebu_icu *icu = platform_msi_get_host_data(d);
109109
unsigned int icu_group;
110110

111111
/* Check the count of the parameters in dt */

0 commit comments

Comments
 (0)