All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] GPIO: irq: no irq domain found for
@ 2013-05-21 20:39 Jean-Christophe PLAGNIOL-VILLARD
       [not found] ` <20130521203935.GI1952-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-05-21 20:39 UTC (permalink / raw)
  To: Grant Likely; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] GPIO: irq: no irq domain found for
       [not found] ` <20130521203935.GI1952-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
@ 2013-05-23  8:42   ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-05-23  8:42 UTC (permalink / raw)
  To: Grant Likely, Nicolas Ferre
  Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ, Rob Herring

On 22:39 Tue 21 May     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> 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?

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-23  8:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-21 20:39 [BUG] GPIO: irq: no irq domain found for Jean-Christophe PLAGNIOL-VILLARD
     [not found] ` <20130521203935.GI1952-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
2013-05-23  8:42   ` Jean-Christophe PLAGNIOL-VILLARD

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.