[PATCH v7 06/15] gpio: find gpio base by ascend order

Grant Likely grant.likely at secretlab.ca
Sat Feb 9 08:45:40 EST 2013


On Fri, 18 Jan 2013 15:31:10 +0800, Haojian Zhuang <haojian.zhuang at linaro.org> wrote:
> gpiochip_find_base() always tries to find valid gpio with descend order.
> It's inconvient if gpio information is passing from DTS. Now try to find
> valid gpio with ascend order.

Why is it more convenient? Just to make the numbers smaller? The reason
it uses a descending search is to mimimize the possibility of collision
with fixed GPIO numbers.

g.




More information about the linux-arm-kernel mailing list