Thread (1 message) 1 message, 1 author, 2016-08-16

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

From: khilman@baylibre.com (Kevin Hilman)
Date: 2016-08-16 13:12:52
Also in: linux-amlogic, linux-i2c, lkml

Daniel Wagner [off-list ref] writes:
From: Daniel Wagner <redacted>

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 <redacted>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help