From: Mike Frysinger <vapier.adi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Aaron.Wu" <Aaron.Wu06-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org
Subject: Re: [uclinux-dist-devel] [PATCH] spi:add support for slave function in current spi framework
Date: Mon, 31 Jan 2011 11:31:48 -0500 [thread overview]
Message-ID: <AANLkTim2FHTp8M+u=cw0QaMiEPgUPwz_3QrbTFR3dBhh@mail.gmail.com> (raw)
In-Reply-To: <1296463611-18764-1-git-send-email-Aaron.Wu06-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
On Mon, Jan 31, 2011 at 03:46, Aaron.Wu wrote:
> --- a/include/linux/spi/spi.h
> +++ b/include/linux/spi/spi.h
> @@ -240,9 +246,9 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
> */
> struct spi_master {
> struct device dev;
> -
> struct list_head list;
>
> +
> /* other than negative (== assign one dynamically), bus_num is fully
> * board-specific. usually that simplifies to being SOC-specific.
> * example: one SOC has three SPI controllers, numbered 0..2,
please avoid useless whitespace changes
> @@ -309,6 +315,50 @@ struct spi_master {
>
> /* called on release() to free memory provided by spi_master */
> void (*cleanup)(struct spi_device *spi);
> +
> + int (*lock_bus)(struct spi_device *spi);
> + int (*unlock_bus)(struct spi_device *spi);
> +};
> @@ -557,8 +635,6 @@ static inline void spi_message_free(struct spi_message *m)
>
> extern int spi_setup(struct spi_device *spi);
> extern int spi_async(struct spi_device *spi, struct spi_message *message);
> -extern int spi_async_locked(struct spi_device *spi,
> - struct spi_message *message);
>
> /*---------------------------------------------------------------------------*/
>
> @@ -568,9 +644,8 @@ extern int spi_async_locked(struct spi_device *spi,
> */
>
> extern int spi_sync(struct spi_device *spi, struct spi_message *message);
> -extern int spi_sync_locked(struct spi_device *spi, struct spi_message *message);
> -extern int spi_bus_lock(struct spi_master *master);
> -extern int spi_bus_unlock(struct spi_master *master);
> +extern int spi_lock_bus(struct spi_device *spi);
> +extern int spi_unlock_bus(struct spi_device *spi);
why are you changing the bus lock/unlock api ?
-mike
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
spi-devel-general mailing list
spi-devel-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spi-devel-general
next prev parent reply other threads:[~2011-01-31 16:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-31 8:46 [PATCH] spi:add support for slave function in current spi framework Aaron.Wu
[not found] ` <1296463611-18764-1-git-send-email-Aaron.Wu06-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-01-31 16:31 ` Mike Frysinger [this message]
2011-02-02 4:05 ` Grant Likely
[not found] ` <20110202040522.GD29148-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2011-02-10 2:25 ` Aaron Wu
[not found] ` <AANLkTikh3XpMpTqk+=R+==6oDr6hjMq68pzyu5si+WeX-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-10 16:01 ` Grant Likely
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='AANLkTim2FHTp8M+u=cw0QaMiEPgUPwz_3QrbTFR3dBhh@mail.gmail.com' \
--to=vapier.adi-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=Aaron.Wu06-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=uclinux-dist-devel-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).