All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] spi: documentation improvements
@ 2014-01-24  6:28 Baruch Siach
       [not found] ` <cover.1390544495.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Baruch Siach @ 2014-01-24  6:28 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, Baruch Siach

This series improves spi documentation as follows:

   * Add explicit note that transfer_one and transfer_one_message are mtually 
     exclusive

   * Add transfer_one documentation to spi-summary

   * s/transfer/message/ in the transfer_one_message description

Baruch Siach (3):
  spi: spi.h: clarify the documentation of transfer_one
  Doc: spi: document the transfer_one spi_master callback
  spi: correct the transfer_one_message documentation wording

 Documentation/spi/spi-summary | 12 +++++++++++-
 include/linux/spi/spi.h       |  6 ++++--
 2 files changed, 15 insertions(+), 3 deletions(-)

-- 
1.8.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/3] spi: spi.h: clarify the documentation of transfer_one
       [not found] ` <cover.1390544495.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
@ 2014-01-24  6:28   ` Baruch Siach
       [not found]     ` <39ffc897bd2e5fd48a3141ed4cd122a80c5bbb20.1390544495.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
  2014-01-24  6:28   ` [PATCH 2/3] Doc: spi: document the transfer_one spi_master callback Baruch Siach
  2014-01-24  6:28   ` [PATCH 3/3] spi: correct the transfer_one_message documentation wording Baruch Siach
  2 siblings, 1 reply; 11+ messages in thread
From: Baruch Siach @ 2014-01-24  6:28 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, Baruch Siach

Explicitly note the transfer_one and transfer_one_message are mutually
exclusive, to make the text a little more newcomers friendly.

Signed-off-by: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
---
 include/linux/spi/spi.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index 8c62ba74dd91..060b21e82e73 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -285,7 +285,9 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
  * @transfer_one: transfer a single spi_transfer. When the
  *	          driver is finished with this transfer it must call
  *	          spi_finalize_current_transfer() so the subsystem can issue
- *                the next transfer
+ *                the next transfer. Note: transfer_one and
+ *                transfer_one_message are mutually exclusive; when both are
+ *                set, transfer_one takes precedence.
  * @unprepare_message: undo any work done by prepare_message().
  * @cs_gpios: Array of GPIOs to use as chip select lines; one per CS
  *	number. Any individual value may be -ENOENT for CS lines that
-- 
1.8.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/3] Doc: spi: document the transfer_one spi_master callback
       [not found] ` <cover.1390544495.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
  2014-01-24  6:28   ` [PATCH 1/3] spi: spi.h: clarify the documentation of transfer_one Baruch Siach
@ 2014-01-24  6:28   ` Baruch Siach
       [not found]     ` <8b6ee8b5a08cd9fa9a94d16d2621e28b4f087098.1390544495.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
  2014-01-24  6:28   ` [PATCH 3/3] spi: correct the transfer_one_message documentation wording Baruch Siach
  2 siblings, 1 reply; 11+ messages in thread
From: Baruch Siach @ 2014-01-24  6:28 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, Baruch Siach

Signed-off-by: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
---
 Documentation/spi/spi-summary | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Documentation/spi/spi-summary b/Documentation/spi/spi-summary
index f21edb983413..6bd55b9473ca 100644
--- a/Documentation/spi/spi-summary
+++ b/Documentation/spi/spi-summary
@@ -545,6 +545,16 @@ SPI MASTER METHODS
 	spi_finalize_current_message() so the subsystem can issue the next
 	transfer. This may sleep.
 
+    master->transfer_one(struct spi_master *master, struct spi_device *spi,
+			 struct spi_transfer *transfer)
+	The subsystem calls the driver to transfer a single transfer while
+	queuing transfers that arrive in the meantime. When the driver is
+	finished with this message, it must call
+	spi_finalize_current_transfer() so the subsystem can issue the next
+	transfer. This may sleep. Note: transfer_one and transfer_one_message
+	are mutually exclusive; when both are set, transfer_one takes
+	precedence.
+
     DEPRECATED METHODS
 
     master->transfer(struct spi_device *spi, struct spi_message *message)
-- 
1.8.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 3/3] spi: correct the transfer_one_message documentation wording
       [not found] ` <cover.1390544495.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
  2014-01-24  6:28   ` [PATCH 1/3] spi: spi.h: clarify the documentation of transfer_one Baruch Siach
  2014-01-24  6:28   ` [PATCH 2/3] Doc: spi: document the transfer_one spi_master callback Baruch Siach
@ 2014-01-24  6:28   ` Baruch Siach
  2 siblings, 0 replies; 11+ messages in thread
From: Baruch Siach @ 2014-01-24  6:28 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, Baruch Siach

The transfer_one_message callback handles messages, not transfers.

Signed-off-by: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
---
 Documentation/spi/spi-summary | 2 +-
 include/linux/spi/spi.h       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/spi/spi-summary b/Documentation/spi/spi-summary
index 6bd55b9473ca..b8b559bb4709 100644
--- a/Documentation/spi/spi-summary
+++ b/Documentation/spi/spi-summary
@@ -543,7 +543,7 @@ SPI MASTER METHODS
 	queuing transfers that arrive in the meantime. When the driver is
 	finished with this message, it must call
 	spi_finalize_current_message() so the subsystem can issue the next
-	transfer. This may sleep.
+	message. This may sleep.
 
     master->transfer_one(struct spi_master *master, struct spi_device *spi,
 			 struct spi_transfer *transfer)
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index 060b21e82e73..286370d6bd23 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -273,7 +273,7 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
  *	message while queuing transfers that arrive in the meantime. When the
  *	driver is finished with this message, it must call
  *	spi_finalize_current_message() so the subsystem can issue the next
- *	transfer
+ *	message
  * @unprepare_transfer_hardware: there are currently no more messages on the
  *	queue so the subsystem notifies the driver that it may relax the
  *	hardware by issuing this call
-- 
1.8.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/3] spi: spi.h: clarify the documentation of transfer_one
       [not found]     ` <39ffc897bd2e5fd48a3141ed4cd122a80c5bbb20.1390544495.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
@ 2014-01-24  7:44       ` Geert Uytterhoeven
       [not found]         ` <CAMuHMdW05ANcRJW8dPwLuvONoXD+Fny=Txd-wuwXVJHCqmva1A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Geert Uytterhoeven @ 2014-01-24  7:44 UTC (permalink / raw)
  To: Baruch Siach; +Cc: Mark Brown, linux-spi

On Fri, Jan 24, 2014 at 7:28 AM, Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> wrote:
> --- a/include/linux/spi/spi.h
> +++ b/include/linux/spi/spi.h
> @@ -285,7 +285,9 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
>   * @transfer_one: transfer a single spi_transfer. When the
>   *               driver is finished with this transfer it must call
>   *               spi_finalize_current_transfer() so the subsystem can issue
> - *                the next transfer
> + *                the next transfer. Note: transfer_one and
> + *                transfer_one_message are mutually exclusive; when both are
> + *                set, transfer_one takes precedence.

I find this a bit difficult to grasp. What does "take precedence" mean in
this context?

The default spi_transfer_one_message() uses .transfer_one().
But if .transfer_one_message() is set, it depends on your own driver if
.transfer_one() is used or not.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/3] Doc: spi: document the transfer_one spi_master callback
       [not found]     ` <8b6ee8b5a08cd9fa9a94d16d2621e28b4f087098.1390544495.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
@ 2014-01-24  7:49       ` Geert Uytterhoeven
       [not found]         ` <CAMuHMdU=7knbuRQEpeCvkaE808i2GviTYqDX_vnEQm26aOvXTQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2014-01-24 13:45       ` Gerhard Sittig
  1 sibling, 1 reply; 11+ messages in thread
From: Geert Uytterhoeven @ 2014-01-24  7:49 UTC (permalink / raw)
  To: Baruch Siach; +Cc: Mark Brown, linux-spi

On Fri, Jan 24, 2014 at 7:28 AM, Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> wrote:
> +++ b/Documentation/spi/spi-summary
> @@ -545,6 +545,16 @@ SPI MASTER METHODS
>         spi_finalize_current_message() so the subsystem can issue the next
>         transfer. This may sleep.
>
> +    master->transfer_one(struct spi_master *master, struct spi_device *spi,
> +                        struct spi_transfer *transfer)
> +       The subsystem calls the driver to transfer a single transfer while
> +       queuing transfers that arrive in the meantime. When the driver is
> +       finished with this message, it must call
> +       spi_finalize_current_transfer() so the subsystem can issue the next
> +       transfer. This may sleep. Note: transfer_one and transfer_one_message
> +       are mutually exclusive; when both are set, transfer_one takes
> +       precedence.
> +

Can you please take into account
http://lkml.indiana.edu/hypermail/linux/kernel/1401.2/02465.html?

Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/3] Doc: spi: document the transfer_one spi_master callback
       [not found]         ` <CAMuHMdU=7knbuRQEpeCvkaE808i2GviTYqDX_vnEQm26aOvXTQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-01-24  8:02           ` Baruch Siach
  0 siblings, 0 replies; 11+ messages in thread
From: Baruch Siach @ 2014-01-24  8:02 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Mark Brown, linux-spi

Hi Geert,

On Fri, Jan 24, 2014 at 08:49:02AM +0100, Geert Uytterhoeven wrote:
> On Fri, Jan 24, 2014 at 7:28 AM, Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> wrote:
> > +++ b/Documentation/spi/spi-summary
> > @@ -545,6 +545,16 @@ SPI MASTER METHODS
> >         spi_finalize_current_message() so the subsystem can issue the next
> >         transfer. This may sleep.
> >
> > +    master->transfer_one(struct spi_master *master, struct spi_device *spi,
> > +                        struct spi_transfer *transfer)
> > +       The subsystem calls the driver to transfer a single transfer while
> > +       queuing transfers that arrive in the meantime. When the driver is
> > +       finished with this message, it must call
> > +       spi_finalize_current_transfer() so the subsystem can issue the next
> > +       transfer. This may sleep. Note: transfer_one and transfer_one_message
> > +       are mutually exclusive; when both are set, transfer_one takes
> > +       precedence.
> > +
> 
> Can you please take into account
> http://lkml.indiana.edu/hypermail/linux/kernel/1401.2/02465.html?

Thanks for reviewing. I'll rebase on Mark's fix/core branch.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org - tel: +972.2.679.5364, http://www.tkos.co.il -
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/3] spi: spi.h: clarify the documentation of transfer_one
       [not found]         ` <CAMuHMdW05ANcRJW8dPwLuvONoXD+Fny=Txd-wuwXVJHCqmva1A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-01-24  8:12           ` Baruch Siach
  2014-01-24  8:31             ` Geert Uytterhoeven
  0 siblings, 1 reply; 11+ messages in thread
From: Baruch Siach @ 2014-01-24  8:12 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Mark Brown, linux-spi

Hi Gerrt,

On Fri, Jan 24, 2014 at 08:44:32AM +0100, Geert Uytterhoeven wrote:
> On Fri, Jan 24, 2014 at 7:28 AM, Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> wrote:
> > --- a/include/linux/spi/spi.h
> > +++ b/include/linux/spi/spi.h
> > @@ -285,7 +285,9 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
> >   * @transfer_one: transfer a single spi_transfer. When the
> >   *               driver is finished with this transfer it must call
> >   *               spi_finalize_current_transfer() so the subsystem can issue
> > - *                the next transfer
> > + *                the next transfer. Note: transfer_one and
> > + *                transfer_one_message are mutually exclusive; when both are
> > + *                set, transfer_one takes precedence.
> 
> I find this a bit difficult to grasp. What does "take precedence" mean in
> this context?
> 
> The default spi_transfer_one_message() uses .transfer_one().
> But if .transfer_one_message() is set, it depends on your own driver if
> .transfer_one() is used or not.

Of course. I misread the code. How about this:

Note: transfer_one and transfer_one_message are mutually exclusive; when both 
are set, the transfer_one callback is not called by the generic subsystem.

Thanks again,
baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org - tel: +972.2.679.5364, http://www.tkos.co.il -
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/3] spi: spi.h: clarify the documentation of transfer_one
  2014-01-24  8:12           ` Baruch Siach
@ 2014-01-24  8:31             ` Geert Uytterhoeven
  0 siblings, 0 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2014-01-24  8:31 UTC (permalink / raw)
  To: Baruch Siach; +Cc: Mark Brown, linux-spi

On Fri, Jan 24, 2014 at 9:12 AM, Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org> wrote:
>> > @@ -285,7 +285,9 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv)
>> >   * @transfer_one: transfer a single spi_transfer. When the
>> >   *               driver is finished with this transfer it must call
>> >   *               spi_finalize_current_transfer() so the subsystem can issue
>> > - *                the next transfer
>> > + *                the next transfer. Note: transfer_one and
>> > + *                transfer_one_message are mutually exclusive; when both are
>> > + *                set, transfer_one takes precedence.
>>
>> I find this a bit difficult to grasp. What does "take precedence" mean in
>> this context?
>>
>> The default spi_transfer_one_message() uses .transfer_one().
>> But if .transfer_one_message() is set, it depends on your own driver if
>> .transfer_one() is used or not.
>
> Of course. I misread the code. How about this:
>
> Note: transfer_one and transfer_one_message are mutually exclusive; when both
> are set, the transfer_one callback is not called by the generic subsystem.

Sounds fine to me, thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/3] Doc: spi: document the transfer_one spi_master callback
       [not found]     ` <8b6ee8b5a08cd9fa9a94d16d2621e28b4f087098.1390544495.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
  2014-01-24  7:49       ` Geert Uytterhoeven
@ 2014-01-24 13:45       ` Gerhard Sittig
       [not found]         ` <20140124134517.GY20094-kDjWylLy9wD0K7fsECOQyeGNnDKD8DIp@public.gmane.org>
  1 sibling, 1 reply; 11+ messages in thread
From: Gerhard Sittig @ 2014-01-24 13:45 UTC (permalink / raw)
  To: Baruch Siach; +Cc: Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA

On Fri, Jan 24, 2014 at 08:28 +0200, Baruch Siach wrote:
> 
> --- a/Documentation/spi/spi-summary
> +++ b/Documentation/spi/spi-summary
> @@ -545,6 +545,16 @@ SPI MASTER METHODS
>  	spi_finalize_current_message() so the subsystem can issue the next
>  	transfer. This may sleep.
>  
> +    master->transfer_one(struct spi_master *master, struct spi_device *spi,
> +			 struct spi_transfer *transfer)
> +	The subsystem calls the driver to transfer a single transfer while
> +	queuing transfers that arrive in the meantime. When the driver is
> +	finished with this message, it must call
                           ^^^^^^^ transfer?
> +	spi_finalize_current_transfer() so the subsystem can issue the next
> +	transfer. This may sleep. Note: transfer_one and transfer_one_message
> +	are mutually exclusive; when both are set, transfer_one takes
> +	precedence.
> +
>      DEPRECATED METHODS


virtually yours
Gerhard Sittig
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office-ynQEQJNshbs@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/3] Doc: spi: document the transfer_one spi_master callback
       [not found]         ` <20140124134517.GY20094-kDjWylLy9wD0K7fsECOQyeGNnDKD8DIp@public.gmane.org>
@ 2014-01-25 18:52           ` Baruch Siach
  0 siblings, 0 replies; 11+ messages in thread
From: Baruch Siach @ 2014-01-25 18:52 UTC (permalink / raw)
  To: Gerhard Sittig; +Cc: Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA

Hi Gerhard,

On Fri, Jan 24, 2014 at 02:45:17PM +0100, Gerhard Sittig wrote:
> On Fri, Jan 24, 2014 at 08:28 +0200, Baruch Siach wrote:
> > 
> > --- a/Documentation/spi/spi-summary
> > +++ b/Documentation/spi/spi-summary
> > @@ -545,6 +545,16 @@ SPI MASTER METHODS
> >  	spi_finalize_current_message() so the subsystem can issue the next
> >  	transfer. This may sleep.
> >  
> > +    master->transfer_one(struct spi_master *master, struct spi_device *spi,
> > +			 struct spi_transfer *transfer)
> > +	The subsystem calls the driver to transfer a single transfer while
> > +	queuing transfers that arrive in the meantime. When the driver is
> > +	finished with this message, it must call
>                            ^^^^^^^ transfer?

Right. Will fix.

Thanks,
baruch

> > +	spi_finalize_current_transfer() so the subsystem can issue the next
> > +	transfer. This may sleep. Note: transfer_one and transfer_one_message
> > +	are mutually exclusive; when both are set, transfer_one takes
> > +	precedence.
> > +
> >      DEPRECATED METHODS

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org - tel: +972.2.679.5364, http://www.tkos.co.il -
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-01-25 18:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-24  6:28 [PATCH 0/3] spi: documentation improvements Baruch Siach
     [not found] ` <cover.1390544495.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
2014-01-24  6:28   ` [PATCH 1/3] spi: spi.h: clarify the documentation of transfer_one Baruch Siach
     [not found]     ` <39ffc897bd2e5fd48a3141ed4cd122a80c5bbb20.1390544495.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
2014-01-24  7:44       ` Geert Uytterhoeven
     [not found]         ` <CAMuHMdW05ANcRJW8dPwLuvONoXD+Fny=Txd-wuwXVJHCqmva1A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-24  8:12           ` Baruch Siach
2014-01-24  8:31             ` Geert Uytterhoeven
2014-01-24  6:28   ` [PATCH 2/3] Doc: spi: document the transfer_one spi_master callback Baruch Siach
     [not found]     ` <8b6ee8b5a08cd9fa9a94d16d2621e28b4f087098.1390544495.git.baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
2014-01-24  7:49       ` Geert Uytterhoeven
     [not found]         ` <CAMuHMdU=7knbuRQEpeCvkaE808i2GviTYqDX_vnEQm26aOvXTQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-24  8:02           ` Baruch Siach
2014-01-24 13:45       ` Gerhard Sittig
     [not found]         ` <20140124134517.GY20094-kDjWylLy9wD0K7fsECOQyeGNnDKD8DIp@public.gmane.org>
2014-01-25 18:52           ` Baruch Siach
2014-01-24  6:28   ` [PATCH 3/3] spi: correct the transfer_one_message documentation wording Baruch Siach

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.