On Mon, Jan 13, 2014 at 1:25 PM, Geert Uytterhoeven
<[email protected]> 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 -- [email protected]

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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to