On Thu, 22 Sep 2011 12:51:23 -0600
Grant Likely<grant.likely@xxxxxxxxxxxx> wrote:
Allow drivers to report at probe time that they cannot get all the resources
required by the device, and should be retried at a later time.
This should completely solve the problem of getting devices
initialized in the right order. Right now this is mostly handled by
mucking about with initcall ordering which is a complete hack, and
doesn't even remotely handle the case where device drivers are in
modules. This approach completely sidesteps the issues by allowing
driver registration to occur in any order, and any driver can request
to be retried after a few more other drivers get probed.
What happens is there is a circular dependency, or if a driver's
preconditions are never met? AFAICT the code keeps running the probe
function for ever.
If so: bad. The kernel should detect such situations, should
exhaustively report them and if possible, fix them up and struggle
onwards.