"status" property checks

Hollis Blanchard hollis_blanchard at mentor.com
Fri Jan 8 10:07:53 EST 2010


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




More information about the devicetree-discuss mailing list