Hardware detection & quirking through the device tree

As part of hardware-desktop-n-xorg-configuration-the-final-ten-percent, we'd like to explore the potential of using the device tree to provide run-time information about the hardware that the kernel is running on.

We don't want to use this functionality for general hardware detection; the proposal here aims to provide a method of debugging and temporary work-arounds for known issues.

Use cases

For both of these cases, we're aiming at situations where a developer can supply a temporary workaround to a specific issue. We're not looking for away for users to fix their own bugs, or long-term solutions for quirking.

Proposal

Recommendation

While adding device tree query code to the drivers is fairly straightforward, but requires a couple of prerequisites before being feasible:

These prerequisites would form the majority of the work involved, and would probably make the work too complex. A simpler interface for updating quirk data may be more suitable, as it's unlikely that we'll need the full device-tree semantics to represent this hardware data.

X/Dev/DeviceTreeHWDetection (last edited 2010-12-22 05:05:41 by ppp121-45-231-157)