And when you do that, could you make it assign GPIO numbers from
the biggest number on down, instead of from the smallest on up?
Platforms normally assign those numbers from the bottom up ... so
dynamic assignment should try to avoid reusing any numbers that may
have been explicitly assigned, but not yet registered. (Of course,
if you can come up with a cleaner solution than that, it'd be great.
Maybe platforms should also be able to mark ranges as "in use" as
they start up, or something.)
And please add a pr_debug level message reporting dynamically
assigned ranges. That way, when problems crop up it'll be that
much easier to notice what went wrong.
- Dave
--