From: Anton Vorontsov <avorontsov-hkdhdckH98+B+jHODAdFcQ@public.gmane.org>
To: Stefan Roese <sr-ynQEQJNshbs@public.gmane.org>
Cc: david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org,
linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [PATCH v5] spi: Add PPC4xx SPI driver
Date: Tue, 6 Jan 2009 05:06:03 +0300 [thread overview]
Message-ID: <20090106020603.GA14074@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <1227628088-10849-1-git-send-email-sr-ynQEQJNshbs@public.gmane.org>
Hi Stefan,
On Tue, Nov 25, 2008 at 04:48:08PM +0100, Stefan Roese wrote:
> This adds a SPI driver for the SPI controller found in the IBM/AMCC
> 4xx PowerPC's.
>
> Signed-off-by: Stefan Roese <sr-ynQEQJNshbs@public.gmane.org>
> Signed-off-by: Wolfgang Ocker <weo-pMF0Ia4UJXeoYr4blSSd5g@public.gmane.org>
> Acked-by: Josh Boyer <jwboyer-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> ---
[...]
> +static unsigned int of_num_gpios(struct device_node *node)
> +{
> + unsigned int num = 0;
> +
> + while (gpio_is_valid(of_get_gpio(node, num)))
> + num++;
> + return num;
> +}
FYI, as of commit 749820928a2fd47ff536773d869d2c3f8038b7d1 ("of/gpio:
Implement of_gpio_count()") you can use of_gpio_count() from
linux/of_gpio.h.
--
Anton Vorontsov
email: cbouatmailru-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
irc://irc.freenode.net/bd2
------------------------------------------------------------------------------
WARNING: multiple messages have this Message-ID (diff)
From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Stefan Roese <sr@denx.de>
Cc: david-b@pacbell.net, linuxppc-dev@ozlabs.org,
spi-devel-general@lists.sourceforge.net
Subject: Re: [spi-devel-general] [PATCH v5] spi: Add PPC4xx SPI driver
Date: Tue, 6 Jan 2009 05:06:03 +0300 [thread overview]
Message-ID: <20090106020603.GA14074@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <1227628088-10849-1-git-send-email-sr@denx.de>
Hi Stefan,
On Tue, Nov 25, 2008 at 04:48:08PM +0100, Stefan Roese wrote:
> This adds a SPI driver for the SPI controller found in the IBM/AMCC
> 4xx PowerPC's.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> Signed-off-by: Wolfgang Ocker <weo@reccoware.de>
> Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
> ---
[...]
> +static unsigned int of_num_gpios(struct device_node *node)
> +{
> + unsigned int num = 0;
> +
> + while (gpio_is_valid(of_get_gpio(node, num)))
> + num++;
> + return num;
> +}
FYI, as of commit 749820928a2fd47ff536773d869d2c3f8038b7d1 ("of/gpio:
Implement of_gpio_count()") you can use of_gpio_count() from
linux/of_gpio.h.
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
next prev parent reply other threads:[~2009-01-06 2:06 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-25 15:48 [PATCH v5] spi: Add PPC4xx SPI driver Stefan Roese
2008-11-25 15:48 ` Stefan Roese
2008-12-09 21:48 ` Steven A. Falco
2008-12-09 22:14 ` Steven A. Falco
[not found] ` <1227628088-10849-1-git-send-email-sr-ynQEQJNshbs@public.gmane.org>
2008-12-27 19:30 ` David Brownell
2008-12-27 19:30 ` David Brownell
2009-01-05 18:12 ` Stefan Roese
2009-01-05 18:12 ` Stefan Roese
[not found] ` <200901051912.25874.sr-ynQEQJNshbs@public.gmane.org>
2009-01-05 19:31 ` Wolfgang Denk
2009-01-05 19:31 ` Wolfgang Denk
2009-01-06 8:26 ` Stefan Roese
[not found] ` <20090105193117.E5AD98387CDB-C2Gvrrd9BC/j/ljBK/0BTg@public.gmane.org>
2009-01-06 8:26 ` Stefan Roese
2009-01-06 8:26 ` Stefan Roese
[not found] ` <200812271130.12513.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2009-01-05 18:12 ` Stefan Roese
2008-12-27 19:32 ` David Brownell
2008-12-27 19:32 ` David Brownell
2008-12-27 21:36 ` Stephen Rothwell
2008-12-27 21:36 ` Stephen Rothwell
2009-01-06 2:06 ` Anton Vorontsov [this message]
2009-01-06 2:06 ` [spi-devel-general] " Anton Vorontsov
[not found] ` <20090106020603.GA14074-wnGakbxT3iijyJ0x5qLZdcN33GVbZNy3@public.gmane.org>
2009-01-06 8:14 ` Stefan Roese
2009-01-06 8:14 ` [spi-devel-general] " Stefan Roese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090106020603.GA14074@oksana.dev.rtsoft.ru \
--to=avorontsov-hkdhdckh98+b+jhodadfcq@public.gmane.org \
--cc=david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org \
--cc=linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=sr-ynQEQJNshbs@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.