lkml.org 
[lkml]   [2023]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v1 1/1] usb: musb: Use read_poll_timeout()
On Mon, Jul 3, 2023 at 2:19 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Use read_poll_timeout() instead of open coding it.
> In the same time, fix the typo in the error message.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
(...)
> + ret = read_poll_timeout(gpiod_get_value, reg, !reg, 1000, 100000, true,
> + glue->intpin);

Wow that's really cool. I had no idea that you could use read_poll_timeout()
together with gpiod_get_value() like this!

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

\
 
 \ /
  Last update: 2023-07-04 11:09    [W:0.147 / U:0.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site