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

Kevin Hilman khilman at baylibre.com
Tue Aug 16 06:12:45 PDT 2016


Daniel Wagner <wagi at monom.org> writes:

> From: Daniel Wagner <daniel.wagner at 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 at bmw-carit.de>

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



More information about the linux-arm-kernel mailing list