From: Hollis Blanchard Subject: "status" property checks Date: Thu, 07 Jan 2010 15:07:53 -0800 Message-ID: <1262905673.11702.16.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Cc: linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org Right now, a number of drivers honor the "status" property on device nodes (via of_device_is_available() checks), but it's open-coded in each driver. I'm thinking of "hiding" arbitrary devices from the kernel, and setting this property seems like the best approach, but at the moment that would require modifying all OF drivers to check for it. Wouldn't the better approach be to have of_platform_device_probe() itself do the check, and not call the driver's probe() routine if the device isn't available? -- Hollis Blanchard Mentor Graphics, Embedded Systems Division