linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* spi_finalize_current_transfer()?
@ 2014-01-13 12:25 Geert Uytterhoeven
       [not found] ` <CAMuHMdVu503YveDyMqJS7Z5fMMzQq5tAgu-72fJGLmvD4acj1A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2014-01-13 12:25 UTC (permalink / raw)
  To: linux-spi-u79uwXL29TY76Z2rM5mHXA

include/linux/spi/spi.h says:

 * @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

However, none of the current drivers implementing transfer_on() calls
spi_finalize_current_transfer() (which just does
"complete(&master->xfer_completion)").
They also don't kick master->xfer_completion theirselves, they all have
their own private xfer_completion.

What am I missing?

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] 2+ messages in thread

* Re: spi_finalize_current_transfer()?
       [not found] ` <CAMuHMdVu503YveDyMqJS7Z5fMMzQq5tAgu-72fJGLmvD4acj1A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-01-13 13:41   ` Geert Uytterhoeven
  0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2014-01-13 13:41 UTC (permalink / raw)
  To: linux-spi-u79uwXL29TY76Z2rM5mHXA, Mark Brown

On Mon, Jan 13, 2014 at 1:25 PM, Geert Uytterhoeven
<geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org> wrote:
> include/linux/spi/spi.h says:
>
>  * @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
>
> However, none of the current drivers implementing transfer_on() calls
> spi_finalize_current_transfer() (which just does
> "complete(&master->xfer_completion)").
> They also don't kick master->xfer_completion theirselves, they all have
> their own private xfer_completion.
>
> What am I missing?

Found it: spi_transfer_one_message() only waits for master->xfer_completion
if master->transfer_one() returned a strict-positive value. Which none of the
current drivers do.

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] 2+ messages in thread

end of thread, other threads:[~2014-01-13 13:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-13 12:25 spi_finalize_current_transfer()? Geert Uytterhoeven
     [not found] ` <CAMuHMdVu503YveDyMqJS7Z5fMMzQq5tAgu-72fJGLmvD4acj1A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-01-13 13:41   ` spi_finalize_current_transfer()? Geert Uytterhoeven

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).