From mboxrd@z Thu Jan 1 00:00:00 1970 From: u.kleine-koenig@pengutronix.de (Uwe =?iso-8859-1?Q?Kleine-K=F6nig?=) Date: Thu, 15 Sep 2011 09:14:27 +0200 Subject: gpio_ensure_requested error on mx31pdk boot In-Reply-To: References: Message-ID: <20110915071427.GD11297@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Sep 15, 2011 at 12:39:07AM -0300, Fabio Estevam wrote: > Hi, > > On a MX31PDK running 3.1-rc3 from Pengutronix's imx-features branch I > get the following: > > Registering mxc_nand as whole device > ------------[ cut here ]------------ > WARNING: at drivers/gpio/gpiolib.c:101 gpio_ensure_requested+0x4c/0xf4() > autorequest GPIO-0 > Modules linked in: > [] (unwind_backtrace+0x0/0xf4) from [] (warn_slowpath_common > +0x4c/0x64) > [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_f > mt+0x30/0x40) > [] (warn_slowpath_fmt+0x30/0x40) from [] (gpio_ensure_reques > ted+0x4c/0xf4) > [] (gpio_ensure_requested+0x4c/0xf4) from [] (gpio_direction > _output+0xa0/0x138) > [] (gpio_direction_output+0xa0/0x138) from [] (spi_imx_setup > +0x38/0x4c) > [] (spi_imx_setup+0x38/0x4c) from [] (spi_setup+0x38/0x50) > [] (spi_setup+0x38/0x50) from [] (spi_add_device+0x94/0x124) > [] (spi_add_device+0x94/0x124) from [] (spi_new_device+0x74/ > 0xac) > [] (spi_new_device+0x74/0xac) from [] (spi_match_master_to_b > oardinfo+0x20/0x40) > [] (spi_match_master_to_boardinfo+0x20/0x40) from [] (spi_re > gister_master+0xb0/0x104) > [] (spi_register_master+0xb0/0x104) from [] (spi_bitbang_sta > rt+0x104/0x17c) > [] (spi_bitbang_start+0x104/0x17c) from [] (spi_imx_probe+0x > 2fc/0x404) > [] (spi_imx_probe+0x2fc/0x404) from [] (platform_drv_probe+0 > x18/0x1c) > [] (platform_drv_probe+0x18/0x1c) from [] (driver_probe_devi > ce+0x78/0x174) > [] (driver_probe_device+0x78/0x174) from [] (__driver_attach > +0x8c/0x90) > [] (__driver_attach+0x8c/0x90) from [] (bus_for_each_dev+0x6 > 0/0x8c) > [] (bus_for_each_dev+0x60/0x8c) from [] (bus_add_driver+0xa0 > /0x288) > [] (bus_add_driver+0xa0/0x288) from [] (driver_register+0x78 > /0x18c) > [] (driver_register+0x78/0x18c) from [] (do_one_initcall+0x3 > 4/0x178) > [] (do_one_initcall+0x34/0x178) from [] (kernel_init+0x74/0x > 118) > [] (kernel_init+0x74/0x118) from [] (kernel_thread_exit+0x0/ > 0x8) > ---[ end trace 759f924b30fd5a44 ]--- > > I have not started debugging yet, but just wondering if anyone else > has seen this. I havn't seen it. Just in case you don't know, that means a gpio was used without being (successfully) requested. On the other hand I wonder if GPIO-0 is correct here?! BTW, the master branch on the imx repo contains all current work, that is for-next + two fixes that won't enter mainline via the imx repo. That's probably the better branch to use. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |