Re: [PATCH v2] gpio: devm_gpio_* support should not depend on GPIOLIB

2013-02-13 Thread Shawn Guo
Sorry for the late response due to Chinese New Year Holidays here. On Sun, Feb 10, 2013 at 07:46:30AM +0300, Max Filippov wrote: > On Sat, Jan 19, 2013 at 2:33 AM, Linus Walleij > wrote: > > On Fri, Jan 18, 2013 at 8:57 AM, Shawn Guo wrote: > > > >> Some architectures (e.g. blackfin) provide gp

Re: [PATCH v2] gpio: devm_gpio_* support should not depend on GPIOLIB

2013-02-12 Thread Linus Walleij
On Mon, Feb 11, 2013 at 5:50 PM, Max Filippov wrote: > FWIW I see that the issue is caused by building drivers/gpio/devres.c > with CONFIG_GPIOLIB=n. Should I just turn GPIO_DEVRES off too? Hm. Shawn just added: +config GPIO_DEVRES + def_bool y + depends on HAS_IOMEM Can you please

Re: [PATCH v2] gpio: devm_gpio_* support should not depend on GPIOLIB

2013-02-11 Thread Stephen Rothwell
Hi Linus, On Mon, 11 Feb 2013 15:13:20 +0100 Linus Walleij wrote: > > Max, can you point us to an xtensa cross-compiler so we can > figure out where the problem is? Prebuilt toolchains suitable for building the kernel can be found at http://www.kernel.org/pub/tools/crosstool/ . -- Cheers, Ste

Re: [PATCH v2] gpio: devm_gpio_* support should not depend on GPIOLIB

2013-02-11 Thread Max Filippov
On Mon, Feb 11, 2013 at 6:13 PM, Linus Walleij wrote: > On Sun, Feb 10, 2013 at 5:46 AM, Max Filippov wrote: >> On Sat, Jan 19, 2013 at 2:33 AM, Linus Walleij >> wrote: >>> On Fri, Jan 18, 2013 at 8:57 AM, Shawn Guo wrote: >>> Some architectures (e.g. blackfin) provide gpio API without re

Re: [PATCH v2] gpio: devm_gpio_* support should not depend on GPIOLIB

2013-02-11 Thread Linus Walleij
On Sun, Feb 10, 2013 at 5:46 AM, Max Filippov wrote: > On Sat, Jan 19, 2013 at 2:33 AM, Linus Walleij > wrote: >> On Fri, Jan 18, 2013 at 8:57 AM, Shawn Guo wrote: >> >>> Some architectures (e.g. blackfin) provide gpio API without requiring >>> GPIOLIB support (ARCH_WANT_OPTIONAL_GPIOLIB). dev

Re: [PATCH v2] gpio: devm_gpio_* support should not depend on GPIOLIB

2013-02-09 Thread Max Filippov
On Sat, Jan 19, 2013 at 2:33 AM, Linus Walleij wrote: > On Fri, Jan 18, 2013 at 8:57 AM, Shawn Guo wrote: > >> Some architectures (e.g. blackfin) provide gpio API without requiring >> GPIOLIB support (ARCH_WANT_OPTIONAL_GPIOLIB). devm_gpio_* functions >> should also work for these architectures,

Re: [PATCH v2] gpio: devm_gpio_* support should not depend on GPIOLIB

2013-01-18 Thread Linus Walleij
On Fri, Jan 18, 2013 at 8:57 AM, Shawn Guo wrote: > Some architectures (e.g. blackfin) provide gpio API without requiring > GPIOLIB support (ARCH_WANT_OPTIONAL_GPIOLIB). devm_gpio_* functions > should also work for these architectures, since they do not really > depend on GPIOLIB. > > Add a new