Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1463774 > unrolled thread

Re: [PATCH v0 4/4] i2c: meson: Use complete() instead of complete_all()

Started byKevin Hilman <khilman@baylibre.com>
First post2016-08-16 15:20 +0200
Last post2016-08-16 15:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v0 4/4] i2c: meson: Use complete() instead of complete_all() Kevin Hilman <khilman@baylibre.com> - 2016-08-16 15:20 +0200

#1463774 — Re: [PATCH v0 4/4] i2c: meson: Use complete() instead of complete_all()

FromKevin Hilman <khilman@baylibre.com>
Date2016-08-16 15:20 +0200
SubjectRe: [PATCH v0 4/4] i2c: meson: Use complete() instead of complete_all()
Message-ID<s6MrE-3zL-9@gated-at.bofh.it>
Daniel Wagner <wagi@monom.org> writes:

> From: Daniel Wagner <daniel.wagner@bmw-carit.de>
>
> There is only one waiter for the completion, therefore there
> is no need to use complete_all(). Let's make that clear by
> using complete() instead of complete_all().
>
> The usage pattern of the completion is:
>
> meson_i2c_xfer_msg()
>   reinit_completion()
>   ...
>   /* Start the transfer */
>   ...
>   wait_for_completion_timeout()
>
> Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>

Acked-by: Kevin Hilman <khilman@baylibre.com>

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web