[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdbfKmG37QRR54S9MiFMZ+g0x37=-uQ1nCtDaJbSk0hHEA@mail.gmail.com>
Date: Fri, 1 Feb 2013 10:37:51 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Andreas Larsson <andreas@...sler.com>
Cc: Grant Likely <grant.likely@...retlab.ca>,
Rob Herring <rob.herring@...xeda.com>,
devicetree-discuss@...ts.ozlabs.org,
spi-devel-general@...ts.sourceforge.net,
linux-kernel@...r.kernel.org, software@...sler.com
Subject: Re: [PATCH v2 2/6] of: Return -ENXIO from of_parse_phandle_with_args
for too large index and return errors from of_gpio_named_count
On Tue, Jan 29, 2013 at 3:53 PM, Andreas Larsson <andreas@...sler.com> wrote:
> This lets of_gpio_named_count return an errno on errors by being able to
> distinguish between reaching the end of the phandle list and getting some other
> error from of_parse_phandle_with_args.
>
> Return error from of_spi_register_master when there is an "cs-gpios" list for
> which gp_gpio_named_count fails.
>
> Adjust various drivers cope with error return from of_gpio_named_count,
> including via of_gpio_count.
>
> Signed-off-by: Andreas Larsson <andreas@...sler.com>
> ---
> Changes since v1:
> - Handle error return values from calls to of_gpio_count
Looks correct to me, but I'm no DT-ninja.
For the GPIO portions:
Acked-by: Linus Walleij <linus.walleij@...aro.org>
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