[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdZeBiTX6hOu_PyrhZ8VA0uD3kz47a1p9Uo30S=w7U2O6A@mail.gmail.com>
Date: Sun, 17 Jun 2012 20:04:47 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Roland Stigge <stigge@...com.de>
Cc: cjb@...top.org, grant.likely@...retlab.ca, rob.herring@...xeda.com,
rmk+kernel@....linux.org.uk, ulf.hansson@...ricsson.com,
linux-mmc@...r.kernel.org, linux-kernel@...r.kernel.org,
aletes.xgr@...il.com, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] gpio: of_get_named_gpio_flags() return -EPROBE_DEFER if
GPIO not yet available
On Sun, Jun 17, 2012 at 12:11 PM, Roland Stigge <stigge@...com.de> wrote:
> of_get_named_gpio_flags() and of_get_named_gpio() return -EPROBE_DEFER if the
> respective GPIO is not (yet) available. This is useful if driver's probe()
> functions try to get a GPIO whose controller isn't probed yet. Thus, the driver
> can be probed again later on.
>
> The function still returns -EINVAL on other errors (parse error or node doesn't
> exist). This way, the case of an optional/intentionally missing GPIO is handled
> appropriately.
>
> Signed-off-by: Roland Stigge <stigge@...com.de>
Acked-by: Linus Walleij <linus.walleij@...aro.org>
This will work, good work!
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists