Re: [PATCH] gpiolib: implement dynamic base allocation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Brownell
Date: Wednesday, March 5, 2008 - 4:40 pm

On Wednesday 05 March 2008, Andrew Morton wrote:

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

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] gpiolib: implement dynamic base allocation, Anton Vorontsov, (Tue Mar 4, 10:03 am)
Re: [PATCH] gpiolib: implement dynamic base allocation, Andrew Morton, (Wed Mar 5, 4:24 pm)
Re: [PATCH] gpiolib: implement dynamic base allocation, David Brownell, (Wed Mar 5, 4:40 pm)
Re: [PATCH] gpiolib: implement dynamic base allocation, Anton Vorontsov, (Wed Mar 5, 6:02 pm)