Re: [PATCH] gpio: fix deferred probe detection for legacy API

2014-12-02 Thread Alexandre Courbot
On Tue, Dec 2, 2014 at 11:20 PM, Alexandre Courbot wrote: > On Tue, Dec 2, 2014 at 11:19 PM, Linus Walleij > wrote: >> On Tue, Dec 2, 2014 at 2:42 PM, Alexandre Courbot >> wrote: >> >>> Commit 14e85c0e69d5 ("gpio: remove gpio_descs global array") changed >>> gpio_to_desc()'s behavior to return

Re: [PATCH] gpio: fix deferred probe detection for legacy API

2014-12-02 Thread Alexandre Courbot
On Tue, Dec 2, 2014 at 11:19 PM, Linus Walleij wrote: > On Tue, Dec 2, 2014 at 2:42 PM, Alexandre Courbot wrote: > >> Commit 14e85c0e69d5 ("gpio: remove gpio_descs global array") changed >> gpio_to_desc()'s behavior to return NULL not only for GPIOs numbers >> not in the valid range, but also for

Re: [PATCH] gpio: fix deferred probe detection for legacy API

2014-12-02 Thread Linus Walleij
On Tue, Dec 2, 2014 at 2:42 PM, Alexandre Courbot wrote: > Commit 14e85c0e69d5 ("gpio: remove gpio_descs global array") changed > gpio_to_desc()'s behavior to return NULL not only for GPIOs numbers > not in the valid range, but also for all GPIOs whose controller has not > been probed yet. Althou

Re: [PATCH] gpio: fix deferred probe detection for legacy API

2014-12-02 Thread Geert Uytterhoeven
Hi Alexandre, On Tue, Dec 2, 2014 at 2:42 PM, Alexandre Courbot wrote: > Commit 14e85c0e69d5 ("gpio: remove gpio_descs global array") changed > gpio_to_desc()'s behavior to return NULL not only for GPIOs numbers > not in the valid range, but also for all GPIOs whose controller has not > been prob

[PATCH] gpio: fix deferred probe detection for legacy API

2014-12-02 Thread Alexandre Courbot
Commit 14e85c0e69d5 ("gpio: remove gpio_descs global array") changed gpio_to_desc()'s behavior to return NULL not only for GPIOs numbers not in the valid range, but also for all GPIOs whose controller has not been probed yet. Although this behavior is more correct (nothing hints that these GPIO num