Skip to contentSkip to conversation

GPIO: irq: no irq domain found for

BUG Jean-Christophe PLAGNIOL-VILLARD 1 participant 2 messages May 21, 2013 – May 23, 2013 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

I'm currently adding the ks8851-ml support to a at91 board

On this board we use a gpio as interrupt but I found an issue

when populating the platfomr devices we try found the virq for the ks8851 but the irq domain is not yet present as the gpio driver (a platform device is not probed) so we get this

irq: no irq domain found for /ahb/apb/pinctrl@fffff400/gpio@fffffa00 !

if we use a gpio irq for a i2c or spi devices it will work as the spi bus will be populate after the gpio driver will be probed

Do you have any idea how can we delay the population of the ks8851 device? via -EPROBE_DEFER?

Best Regards,
J.

A message that is not in the archive (sent off-list or not yet received): 20130521203935.GI1952-RQcB7r2h9QmfDR2tN2SG5Ni2O/[email protected]

#2 lore raw
Quoted 10 lines · Jean-Christophe PLAGNIOL-VILLARD

Hi,

I'm currently adding the ks8851-ml support to a at91 board

On this board we use a gpio as interrupt but I found an issue

when populating the platfomr devices we try found the virq for the ks8851 but the irq domain is not yet present as the gpio driver (a platform device is not probed) so we get this

Quoted 7 lines

irq: no irq domain found for /ahb/apb/pinctrl@fffff400/gpio@fffffa00 !

if we use a gpio irq for a i2c or spi devices it will work as the spi bus will be populate after the gpio driver will be probed

Do you have any idea how can we delay the population of the ks8851 device? via -EPROBE_DEFER?

I continue to debug and found that to make it work we need to have a specific driver init

we need before calling

	 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);

to create all the irq domain

so we need to probe the gpio driver before, but as the gpio driver (on at91 the same driver do pintrl + gpio) is a platform_device, we need to call

of_platform_device_create_pdata(np, NULL, NULL, NULL);

on the gpio nodes and pinctrl

but as of_platform_populate & co does not check if a node is already handled we need modify it to track it

Grant do you want to do this way or do you have something else in mind

Best Regards,
J.