Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp124656iof; Sun, 5 Jun 2022 23:06:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNS77iEbg/1ri9p9kDy34E1T4qcgl4Pz/MJ93WV20Vbjx4giMJAZuksMntNmlkoD+4yrFZ X-Received: by 2002:a17:90a:b943:b0:1e8:4669:ce61 with SMTP id f3-20020a17090ab94300b001e84669ce61mr14676323pjw.229.1654495567852; Sun, 05 Jun 2022 23:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654495567; cv=none; d=google.com; s=arc-20160816; b=HWc5SaxUOgsAcLBJdU8K+8on4sljJ1UVgu75W2vkdsL6YBKJj1ZzowwJKYB0lhIFrq QwRt+VFRo+KqU6Z0JiLIq88JNYOYB4ApF+zVD8BGWxJ+iaKxa2F6DKvSmgjJnfcj0ry8 CkBQ4TGBRPFPdiPmQwT4QvbxivCW81Bi18xcmuj9O3c/2QMHxEgl9s/lV7R9lQr+klbr EZhNoe35hHx80JraaXKsUWi2T/g49MhBo66PNGvZOXtZTCFR6EyJe9LXIyUd9GQxJvcC 0hQolDw6mVkvhvf28IbiG/CZ9GfzAHkmws9+vITqJzp2mMJLElXc++ehA/QN/aQeR/Sa 4eIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/nXs+dOt3qtz5Rfpk6unyzsXwut+ijWDQ38kRxpMpj8=; b=D4Fmz589/Mi9Cno/b0nJ1Gn98442ol8vmfVtfddFvN4K2SfEuEdajWA1W1WtKhDRri Mbs6ZG4ICmEdwayFY/7NRRFupj9TYlPhCyZjt6/uxA8hMM/VbiNgk4tasrddZ2BNcE5y A45MxeJ+AVSFkDMRNOvmy58/eR0v2kXEEBEb/uf5yJVuldE9dKas3Q8Lq1GHDRzL0rLx yJE9HJR7gj7BtoIkcuBWCCjCuJq5eM1/pl9hOFRMkwuCL52l1ShlGFPdcVB+A1wcss1o ueMlz0pmq8xgoHb8pE+N2MTDPql7hdHxCeB6+gu3AVQ0eB8zlYFH0vD8thkk8gRbQ1sf Uv9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=FcC3JidI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m16-20020a17090b069000b001e0cc5e7aabsi17116200pjz.22.2022.06.05.23.06.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:06:07 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=FcC3JidI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3BE0FA3C1E; Sun, 5 Jun 2022 21:55:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351371AbiFEWAH (ORCPT + 99 others); Sun, 5 Jun 2022 18:00:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233452AbiFEWAG (ORCPT ); Sun, 5 Jun 2022 18:00:06 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80230E0D5; Sun, 5 Jun 2022 15:00:05 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id kq6so12615251ejb.11; Sun, 05 Jun 2022 15:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/nXs+dOt3qtz5Rfpk6unyzsXwut+ijWDQ38kRxpMpj8=; b=FcC3JidIshj4EA0fVIOWBbVSVLLqvUJhH+YNW/bHu2KmUkSoxIe1SiHDeWStNnFxWG VkdC1Or2gXV72tgxnPZWIssM4auPVUoWiLkaF0RaSx+DkuldZ3Akk2LrcDkLE7WcWkEG ZExQG9TRkZzCcVeVoDuE+jtspC+Scd4mlMGXQGD8WpIkrMGlogGjxemSj95k38/rUi9S zU2tjWXA96GXVY0DAXczJ61XiHSH+o7LUSrkgHpB2PuYXQBgDtTJmbVJYd384AR9+O80 cX3QvrIwHkY8t59KX7+bQzfUM8u3FqFMrN9XZTOGKjDsr3nwwRB7Yw3rfz3Ey2NL0OJE 0j+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/nXs+dOt3qtz5Rfpk6unyzsXwut+ijWDQ38kRxpMpj8=; b=OTi5XHtWdxZVWDBYACMC/cuPCi6/cOvbR3YPvTfaQv7lcJ/q2lAnc4LFBhqX9cCEcQ 8tACti6dEiCymnzbYTNhv6JAU73xNRj5t1Tqvg0URh/F4gxMKC9I0Gh5FIusjgvtyHCJ fgs1CFqsFeeOG1n7WWeoIb3tfcXXvls9jm8bXjfFwmIDUgFfAY/kh3vgunMbgyapiWVF iTzRJzhubDz4r4j8JMjET22PvhmNbO7qL+VDQ3ZADnCGCKYl8lf/t5aVBUBHfXpn/J/O aEm8b3Hrzjxn5trLHmHOM3EOUI/+HhqF3CuSyHLHTXAZj1dQaavcZ7MYR9SX7Uz+8uM0 2Mog== X-Gm-Message-State: AOAM533HQKkFIOwD5f5JG0NKKZlGQFQSUPaSNg7Al3YOp+57oE72bo/Q 6MRAGoiD+Gan/VwtkmpMUeudEUAG1c+l19SwMl0= X-Received: by 2002:a17:907:7f21:b0:6ff:10b:9cee with SMTP id qf33-20020a1709077f2100b006ff010b9ceemr18764852ejc.302.1654466403949; Sun, 05 Jun 2022 15:00:03 -0700 (PDT) MIME-Version: 1.0 References: <20220603100004.70336-1-andriy.shevchenko@linux.intel.com> <20220603100004.70336-6-andriy.shevchenko@linux.intel.com> In-Reply-To: <20220603100004.70336-6-andriy.shevchenko@linux.intel.com> From: Martin Blumenstingl Date: Sun, 5 Jun 2022 23:59:53 +0200 Message-ID: Subject: Re: [RFC PATCH v3 6/6] iio: adc: meson_saradc: Use regmap_read_poll_timeout() for busy wait To: Andy Shevchenko Cc: linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , Neil Armstrong , Kevin Hilman , Jerome Brunet Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Fri, Jun 3, 2022 at 12:00 PM Andy Shevchenko wrote: > > Simplify busy wait stages by using regmap_read_poll_timeout(). > > Signed-off-by: Andy Shevchenko Reviewed-by: Martin Blumenstingl > v3: new patch, but RFC, not always the read_poll_timeout() can be used, would > be nice to have it tested. and also: Tested-by: Martin Blumenstingl # GXM VIM2