From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id ED200B6F76 for ; Wed, 30 Mar 2011 19:26:42 +1100 (EST) Subject: Re: checking status semantics with compatible functions Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Kumar Gala In-Reply-To: <9BC4C90E-090F-4961-A242-10D769C08738@kernel.crashing.org> Date: Wed, 30 Mar 2011 03:26:29 -0500 Message-Id: References: <9BC4C90E-090F-4961-A242-10D769C08738@kernel.crashing.org> To: Kumar Gala Cc: Linuxppc-dev list , devicetree-discuss , Prabhakar Kushwaha List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , [Adding proper lists on CC] - k On Mar 30, 2011, at 3:07 AM, Kumar Gala wrote: > Grant, >=20 > We have a few helper functions like: >=20 > drivers/of/base.c:EXPORT_SYMBOL(of_device_is_compatible); > drivers/of/base.c:EXPORT_SYMBOL(of_find_compatible_node); >=20 > That we use in places like arch/powerpc/platform/85xx/mpc85xx_ds.c: >=20 > 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")) { >=20 > 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? >=20 > - k > _______________________________________________ > devicetree-discuss mailing list > devicetree-discuss@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/devicetree-discuss