Message ID | 20200425110354.12381-3-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBL5SSD2QKGQEFA72BVQ@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 07EFA3F078 for <linux-amarula@patchwork.amarulasolutions.com>; Sat, 25 Apr 2020 13:04:17 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id w4sf10517910pjt.2 for <linux-amarula@patchwork.amarulasolutions.com>; Sat, 25 Apr 2020 04:04:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1587812656; cv=pass; d=google.com; s=arc-20160816; b=hcMWM71v29HQcl2Tma19/orgLKE75T4slaWxPoBEHgCYJkc3YAslPKy0ihSCkT0LKf sduxn7btCxz56icTR+7743hy3kaoqiUwbPvE3aWdTVyqogkNmDogInsxGY5drBeuv+RP Q4XiYuAqCPZjs72hqeieU6ati5eKwe82yXBd5Uow/GekaJi9BHhUSW05rB2eQUhfKWvK cdamBa72n4X3AtZTGGd4vvAmBWkdDVS9QNy0E/AVWEjhY9fuduVhzasTCfibOBC257ha 4Qo7lYM4JsDhjD0kR2wY4dDS7rEWGUpEJUH+V/kTd1dClOnC7vjBVt9gDCoSze0tLnyy uPGQ== 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=WMfl8dwqqeXUmxvplaDP/NWYWijW9LJ8dnjlRbgFH9U=; b=G95xYC+6CfJFimisBEpXeD9kqthPwwzEEila/LS+n6ETmT/VqpF7KFSXoEJjF+hXaz SIjJubmRhQZY17wQatx8Ks6OMzB/ABzg1mrwEmYUP6hVIByCUjOE6Mn7AgWE4sKS4byx 6OHotxCVWec3Xkb60k4F1JTJCJJilT5cQxKMc2uNwOpptoxelAERXzk77DB3Cha55YPQ TGTwk/Z209vhuDGj9mnHc5odHwhJt4jCCLLtMPKKTApipG4+aSStFyKevQdHpzNzOfjz TiN4XOBGn1dLQfHARHcvxfRNbpt0Za0BZAof3e+GonqSGUSJ9bw7ev8ExfoaYicuvKDn fhEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fmtndGht; 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=WMfl8dwqqeXUmxvplaDP/NWYWijW9LJ8dnjlRbgFH9U=; b=mRTjONOvUTU+XDqBnq8bbW0vAfNhj0W/13YUvrq6j/fTuZANkwBt9p2kC13ZVpLajO HCgfCUcXfynFxjTqyD3nmMLEgMotpIeRWamv5EspLH7IwMIRcoiz8vPpcTZrXAatQgDQ 57f7yJvcemdsTPNK/L1JfvARLAfUMfOOawR+c= 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=WMfl8dwqqeXUmxvplaDP/NWYWijW9LJ8dnjlRbgFH9U=; b=HRyXXB5J5ViwYYcX9uPZiRXgLa5w9iEb41Xz/cVvPqiNpLtwQYcxMrs65d4ymWKgz2 OnWzCmVNrnekgEr51z1xKac0X3Tik/KgNI7hWc/EHnHAxnNmTC/pOVcMuOwMpoYMrlEp +0b6QOs0oKqoYk7nJFKE2bsQbvlTnh2Raij1M1HksoNK2DEYTne/Kjbwykhbwkd+wJUF FFGHUm34GzpeZXXXVk2PLS9jam6oAa6XvlQitrsapoRyyIsEstxg+yC1wICMXdJ77546 r5syuCAOhF/rR6IV3eTSTfFHD4t5CIXE9JESOa/lUVdWdTIdf/bI4XSN/PSeR0bFK1UF SHZA== X-Gm-Message-State: AGi0Pubh+QAd3GG4ddAcQnNINgHhXOTfEPhQO2nUBm5MEvB5VkTlQgnW QisEL3NGq25wSqoGJan+7xnczT7u X-Google-Smtp-Source: APiQypLvSsQgR5CFkKdPoFzXZUt3w2Nk3YmajaCVOyESJkLqZXgJFT7rpeRZHcDT2c7uveyBFfyHgw== X-Received: by 2002:a62:19d5:: with SMTP id 204mr14493753pfz.75.1587812655810; Sat, 25 Apr 2020 04:04:15 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:5d97:: with SMTP id t23ls10599454pji.0.canary-gmail; Sat, 25 Apr 2020 04:04:15 -0700 (PDT) X-Received: by 2002:a17:902:a5c2:: with SMTP id t2mr13797332plq.151.1587812655372; Sat, 25 Apr 2020 04:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587812655; cv=none; d=google.com; s=arc-20160816; b=IeMRg7Yv0Cgbwonbn00Uy6/ttDrM4+91ivN1sU9RTTHcfBZWo2g0kUcjRY0H21pi4z 4lUu1x5Y84o6OAC3kFXpoIw7qxIyVI7aJOTLxMgRveGizDvyXlJ3CCfUKbE91h9b6Qa3 7vTB7dj5p9Sa2I8jO907FLRSFJk+/xydmITD47bTjEScrLpuSgx1+t8cZc7aKrIOA3J1 KwVS17urfh9xecPSaVONAExyWlz7eoCKwdDNm6GaCrR+U6VVEBW93KM0cLsL9zVEQTdh P7LV9roc2PURksVUG+TCEcf8hVum4F3gL6TYFTiVQ4widZkc7R2PDzOc8j5QFVJ4AyIt pj5g== 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=aUlll32zfX7ITjPFpHp0Q7B45yE/EkgzuSyxmyuDIG4=; b=kYhoHJozoVltD7vUvcKsFRrKXoxMRpXaCiB2vK+2pGDOGxSx61wcYVrh6rXXhVBceK zhO1jLQf0sKuxsb3Moj1sMt+KT71e0ha2uABRImFD7Bz34JZB/wuT6cuajHF0EKMrYR3 z/bBuE4x5YOpTAKtr1KenVta7hK9zuSExQosThkWO2gPMYgL1w8ithGQp2XcP1j0b+Qa /o9xmY/6MrOrvBZzd3PIAUeLiZbSuYwV+jxp+P/MYNr6BRY2oUkZmjuPHbCveCflte6Q +WVl+rz5r7981pwJQ6rV6ieiLzroangQCclw+5S6SXvxiWOHtAErps70WQmEZNoFygrm K6Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fmtndGht; 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 1sor11539880pla.14.2020.04.25.04.04.15 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sat, 25 Apr 2020 04:04:15 -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:a17:902:347:: with SMTP id 65mr13880569pld.21.1587812655032; Sat, 25 Apr 2020 04:04:15 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:1d46:fa69:c34:93dc]) by smtp.gmail.com with ESMTPSA id v94sm6922831pjb.39.2020.04.25.04.04.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2020 04:04:14 -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 2/8] iopoll: Add readl_poll_sleep_timeout Date: Sat, 25 Apr 2020 16:33:48 +0530 Message-Id: <20200425110354.12381-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200425110354.12381-1-jagan@amarulasolutions.com> References: <20200425110354.12381-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=fmtndGht; 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> --- include/linux/iopoll.h | 3 +++ 1 file changed, 3 insertions(+)