Message ID | 20200430070412.12499-3-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBAHRVH2QKGQEWKF574A@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B1FC83F0D3 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 30 Apr 2020 09:04:33 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id y16sf4555767pfe.16 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 30 Apr 2020 00:04:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588230272; cv=pass; d=google.com; s=arc-20160816; b=RQXaxXiVDa127EMe0TuOOByv1nPhq0w5i5VH3Zm5fX9WVyxm9mYZcVA6sNfGC1DSYK DDBco15A2dZVCPPj+kkKsap04hDaPCpFZnBFNMrvjQ4YywFRxF+8vMy0hoBsVbSuEBg5 t/C+m3ZrORq06XX/sN7Fk18Te68/SA5meWsOAw8KzvdT3NS0yIBRhMZ7YUPE8xurI5k5 PkHo0+C9MFLqlI32ol72oKQdIMRQkM44q5DzNkVmbM1R6XAdKD6t/qClonsY5AppqYGq 69xrtItm1G7ek778FXogdZcG1+XG42jVaWF09NHDtp7KZnr4BNCvA8fF//FTDdvdDb0B llpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=pfa5aJPipl3FLMfiplthkasrbKIJXlBnFmnBpbz8drI=; b=PkKjSEjxTskdCKvFVF45YjuZK1zXRnOYorl3OzqvFFVUgPZxjhNAOITPp2Mn5P2OHZ B/+dHp7SnLeseMjrPNJKh3Onm1l1/pIRUGxV15iEverRRxPRaxIfubpT7E/CSyERzcXv jXAaRdQslpyaNzK+ZKQ/8+AEo67FC3MwSjbYaX23YzAMBY+DY36iI3pyM5iWuJo2vp2s 2Xlj8iCAScFcCXFno4Nn2B02htGNS3RFWMUNAvyQBlaNT5GG9zUdqcJoUgR0QP5nWKn7 34Oszv1OBYyTr4J8xvDdsdlDTh/NY4lS3p05IFoDy8VYWYi3HKec0Pu7ffyozYvuE3jJ jn0g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KwiLAQPZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=pfa5aJPipl3FLMfiplthkasrbKIJXlBnFmnBpbz8drI=; b=ZDJPJV6+2PX8UjI7iFj0ybgMvnMt3AJ+i2p8boKnLhccjmQ6sNXpAkFyU51ERvvy4s NnQ/LgGq8IRVezXjabLJRDLE3sO0GaL9nZp0zZpR/eJD0PVYKrGqhavlK4KLIYC/tJg+ tpVhrSO+zYe0NOXxPE0aoBa2lf2p3jh6Gul6k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=pfa5aJPipl3FLMfiplthkasrbKIJXlBnFmnBpbz8drI=; b=BSptlHy/6aQYXsNQElvaxx19/6Q2Q23d8mj8ZXUnk400NcI3Xt65Vkd9sNXg+SKHid Myfddq1sC2k6/XVso39nT0qchdpZCMQjnU0S+QQGEt81ZMnpvK15m+zbkoP1xeitRYlr tU2lvBZQAxc5+P7lKWqpDtc+CMv3EZK4T+8FArSp7BYIi0U1mkqRZNOiJ99OKpj1Gjd3 UuVhxllGOYvD791xhP9BTRxPa+GzRFFPE2vVJI3MkMGuLMykGk1FF/MqjC36msKR4koy eHdQlbWdrge41/u9Y32tYh7yEz1wwomlg1fV4TTeXO1rZXzOah//2u2Cciq3VWUvTnl4 YWMA== X-Gm-Message-State: AGi0Pubsc7JjejGVutqQoENwmyRLRIekcwWcaQJ1EOpz+0EU07Vba+a/ /z4C3Q5aWO/PV6zey3n4lcvkG4po X-Google-Smtp-Source: APiQypIRsKXgnbkm/GPOF/ixefSTUCWibgYInPnPR/VWpFPuIDtvEqPWogL4kiSsDxGrcFWz6Dr5TA== X-Received: by 2002:a62:7d91:: with SMTP id y139mr2152181pfc.172.1588230272486; Thu, 30 Apr 2020 00:04:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:224f:: with SMTP id c73ls1620848pje.3.canary-gmail; Thu, 30 Apr 2020 00:04:32 -0700 (PDT) X-Received: by 2002:a17:90a:fb89:: with SMTP id cp9mr1319987pjb.40.1588230272062; Thu, 30 Apr 2020 00:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588230272; cv=none; d=google.com; s=arc-20160816; b=IODxZveUUFmc/f0VY3Afyp0FoHn6Trkhn+qXIkYloMsvOsht7CZI6OA+U8PVGQa6bF 6uxcgFYp+58dJKr/mSE9/3XBZXgd8FETGsObVQAQb6uWm+vGYydjD6WxVkIZWsnZ+PEB uOfHY7Ej33xEBWYTXafsQregIBq9suDTZPat9cS7kbFL7Edh94NMuBUWFOYSFde+TjUK 7vEe0KN50zwe+CSzhBzLhL3Y0udjeqiCXIzR9sZExldxHBa49AHMwFyXAzU/y43LdrYo EtvPiE7b6FWEQ20CXdOgcBLfMxKo5iCAnx2rKB3ds+J1gsFhbd7vNPWzRO8WacxLiVou xJKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WWOeoV6bRuBvU+8GtDUel9zwEhNvk1uDDmzUorUI6o8=; b=eEg3k3sI4W4wAC1I77Sb10DaSKtBWL3OTArxcMq+953V6EWZKglfT3TYl5BVUIJHK4 KrYkVEhFY5pPM+Z4HnsBQLw8Wmz8QzNczGxUOi3hGpllmsy17IaTNZSEI6NL52qfP++b mfBnXmQB/GaAnLM/dte/AiQw1YSk+eTi1rxuZe/Oa0sSCS6uqGvyCnJ7Kvzpz9Iq63o/ H51aoj+capKDllwqRcIB8AsKnFL8F7EcgQAHEBmwl2Mzw35j2txS6V4GW+nYj1p2koxJ QUQbsEUlgIfUd5iGq3Kf5LjGQPyWrO5e8cg0JsXo9Nc3c7ljrQuC57oA/d8kIMGoA2x4 mQZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KwiLAQPZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id z67sor4618728pfb.9.2020.04.30.00.04.31 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Thu, 30 Apr 2020 00:04:31 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:aa7:957c:: with SMTP id x28mr2091592pfq.31.1588230271132; Thu, 30 Apr 2020 00:04:31 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:6514:3619:d1af:85f6]) by smtp.gmail.com with ESMTPSA id p64sm964143pjp.7.2020.04.30.00.04.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 00:04:30 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Kever Yang <kever.yang@rock-chips.com>, Simon Glass <sjg@chromium.org>, Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Cc: patrick@blueri.se, sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com>, Tom Rini <trini@konsulko.com> Subject: [PATCH v2 2/8] iopoll: Add readl_poll_sleep_timeout Date: Thu, 30 Apr 2020 12:34:06 +0530 Message-Id: <20200430070412.12499-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200430070412.12499-1-jagan@amarulasolutions.com> References: <20200430070412.12499-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KwiLAQPZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h index 0bbd757939..e087f23271 100644 --- a/include/linux/iopoll.h +++ b/include/linux/iopoll.h @@ -42,6 +42,9 @@ (cond) ? 0 : -ETIMEDOUT; \ }) +#define readl_poll_sleep_timeout(addr, val, cond, sleep_us, timeout_us) \ + readx_poll_timeout(readl, addr, val, cond, sleep_us, timeout_us) + #define readb_poll_timeout(addr, val, cond, timeout_us) \ readx_poll_timeout(readb, addr, val, cond, false, timeout_us)
Add readl poll API with sleep and timeout support. Cc: Tom Rini <trini@konsulko.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- Changes for v2: - none include/linux/iopoll.h | 3 +++ 1 file changed, 3 insertions(+)