Devicetree
 help / color / mirror / Atom feed
* checking status semantics with compatible functions
@ 2011-03-30  8:07 Kumar Gala
       [not found] ` <9BC4C90E-090F-4961-A242-10D769C08738-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Kumar Gala @ 2011-03-30  8:07 UTC (permalink / raw)
  To: Grant Likely
  Cc: devicetree-discuss, linuxppc-dev-50dRxjG7WBCY5r8RbUyfqNHuzzzSOjJt,
	Prabhakar Kushwaha

Grant,

We have a few helper functions like:

drivers/of/base.c:EXPORT_SYMBOL(of_device_is_compatible);
drivers/of/base.c:EXPORT_SYMBOL(of_find_compatible_node);

That we use in places like arch/powerpc/platform/85xx/mpc85xx_ds.c:

        for_each_node_by_type(np, "pci") {
                if (of_device_is_compatible(np, "fsl,mpc8540-pci") ||
                    of_device_is_compatible(np, "fsl,mpc8548-pcie") ||
                    of_device_is_compatible(np, "fsl,p2020-pcie")) {

It seems like we should check 'status' in these cases with 'of_device_is_available'.  I'm thinking that we should have versions of the helpers that also do the 'of_device_is_available' checking.  Or should we just change the helpers to call of_device_is_available?

- k

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

end of thread, other threads:[~2011-04-05 11:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-30  8:07 checking status semantics with compatible functions Kumar Gala
     [not found] ` <9BC4C90E-090F-4961-A242-10D769C08738-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2011-03-30  8:26   ` Kumar Gala
2011-03-30 14:31     ` Grant Likely
     [not found]       ` <20110330143113.GA13685-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2011-04-05 11:59         ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox