Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27413727rwd; Tue, 4 Jul 2023 02:35:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlHONMGrTbi9j3qabfgYsR7FF47WEvU+9wDPLhxT+Feruazl+WUFVq6Mqf/rsgBKU15TBAnp X-Received: by 2002:a05:6a20:6a22:b0:12e:6ba3:1f6f with SMTP id p34-20020a056a206a2200b0012e6ba31f6fmr8309361pzk.23.1688463344837; Tue, 04 Jul 2023 02:35:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688463344; cv=none; d=google.com; s=arc-20160816; b=tvYIWHqMAnfdesnop827i6Byt3KLujyNpoaXdSprnSwy3CiODi2BCdR/S9ztz0Xrm5 +xTxfmYFpVVJdbLTZi2tDPYdBYxX50ez/uyQ+i3UcHhv1XvHBOU+j7fJIY0JYQuNleb0 4HPusnbl/IHlC+XPj5Yz9/eBCUZKcu6ruTvvYvkLI0HRR4jrpVvL1wAYPenw2kUGp+ub OMl8V9SYnSVMADuu1nukl6Tz4MUyB12cuXzH2YeP3gukVL26bG4xw8S95B5YIpqaXr3j q/u5x+vgr3nSMjkbWC8K83gG+N1F2nVJ2iY+/EWc0NnM/KMqZvGk/cMdLpNqdgqhObSC lYzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6GdaHmnlsV8S6Cig719VwA16gJQYVyJKz/YSsgg7mS0=; fh=/RRBG+BTFvmw+VnIhfSbBWiWjpcU7ipGKtMmG1u8B7I=; b=crzytghEP+hZ4TQBLrg7USdweMQ71n32TE0QaxWT1e0oJ8DxMXJ0BFGX7d95Lu0ru9 RxY8WNUcoPRzfNabG90+0g9bxVLS/EJTUaosPpmyDjrNW3C5m/NrkgET1nXQVc5OsiSK rrBD9mlKhaKyLtw6eq5OjNRqeCovmI5q7E+TN1OCjJyz3foSDkeHd26EtzWkVcKhd+cu fux0YuiE20wnaODdEfUwd26j3d3Ek/cwjBM1plqW139VJBqGIokxnD0o9UOhf1Z45FP3 sGHKdzLhohKh3shRrHBEjVEGmMskIjYu03AxRfDt4a9xVYxY2q50zBDn7o8ym1GUyYLD +5PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q4uA38ke; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l184-20020a6388c1000000b0054481da6ee5si20031570pgd.418.2023.07.04.02.35.31; Tue, 04 Jul 2023 02:35:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q4uA38ke; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231358AbjGDJIz (ORCPT + 99 others); Tue, 4 Jul 2023 05:08:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230156AbjGDJIy (ORCPT ); Tue, 4 Jul 2023 05:08:54 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47FAAB3 for ; Tue, 4 Jul 2023 02:08:53 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-57045429f76so61189987b3.0 for ; Tue, 04 Jul 2023 02:08:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688461732; x=1691053732; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6GdaHmnlsV8S6Cig719VwA16gJQYVyJKz/YSsgg7mS0=; b=q4uA38keofPHO2TUVFek3LJkw2yMGrDyEfrbrAiLFLSARwYr6g6ZFsvWZkWNrL7rYZ p4MR/teWbictMYdRW2MNHqaSvEndKH7//CF27YKVWrbDgrgbHuENYlG37EHzRXU7MUj8 CNJn08RAGoXKutpYp7T5MVaMwgQdZUCZztm4SPRvAPtlF7zU4ZMvPycd+2FljeAU9ARn B51AlnuT+f6Op0P24zbC7K6PxFr2kgCKSXnrztegwXu0xaygRGM9owxLNMH/UVS2yCjg ljPC25M4HGHxo9Yo6cwoXKqj0SVG3CIAZbigTJwGICRyzVAWDEmbwGtMvr6y/7l08ctd 9PKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688461732; x=1691053732; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6GdaHmnlsV8S6Cig719VwA16gJQYVyJKz/YSsgg7mS0=; b=FtBiNYWVERBsx25MhxEqvGpW4SBMgrWGD2/mtKuZv5P4gtvfq0EBMf0v2YlaM5wIA4 K1AF5uImR7MqI530wSvaaVApQyAKHIaNcL0gHqttT+b0R4M2yLLZikiVhhaxtvI/Hppc Q8Rtvzg5R0tzzKveAGUyuzaRf6+dczPllm0wRZGKcXr0HofmXAld/lnJnSuqLSic6zFg 5X557qgR/TWhpHbkQwudVrKh4J59YjHh/3i6UGmVQrR2Rl50bI7piQ/BXGgbpuTPpxID kr23R1vhIxy5BOiZBD+TJ84zhjlKL9bus+e1A16OC/PPkANus+QUJZXhPnNuBELBLT61 /yHQ== X-Gm-Message-State: ABy/qLbC65z25ihEmyPsSyTjfHl9IIhKe2dqCAIx7nQUEJdTZ55xisyQ ijnH7aVgBaZVEFnujtNTDyGTD7IZDWsXkxcJB8Nj94YxfiIAh4IM X-Received: by 2002:a25:cf55:0:b0:c5c:66db:56c4 with SMTP id f82-20020a25cf55000000b00c5c66db56c4mr1499236ybg.21.1688461732510; Tue, 04 Jul 2023 02:08:52 -0700 (PDT) MIME-Version: 1.0 References: <20230703121936.71623-1-andriy.shevchenko@linux.intel.com> In-Reply-To: <20230703121936.71623-1-andriy.shevchenko@linux.intel.com> From: Linus Walleij Date: Tue, 4 Jul 2023 11:08:41 +0200 Message-ID: Subject: Re: [PATCH v1 1/1] usb: musb: Use read_poll_timeout() To: Andy Shevchenko Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Bin Liu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 3, 2023 at 2:19=E2=80=AFPM Andy Shevchenko 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 (...) > + ret =3D read_poll_timeout(gpiod_get_value, reg, !reg, 1000, 10000= 0, 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 Yours, Linus Walleij