Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6999566imu; Thu, 27 Dec 2018 10:15:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uyf1Gv2MYnRu0xcxe1gXdBoS6HlL4FScj7HfagD+dgmKoc76JDErE3rvdExSHk0eBDV10G X-Received: by 2002:a62:f247:: with SMTP id y7mr25156562pfl.25.1545934541132; Thu, 27 Dec 2018 10:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545934541; cv=none; d=google.com; s=arc-20160816; b=XeuhzVu2ybCZTWFwgJhdqi1XaPF/yG9R73qXSWmuF/2+5v9ugKZDThkoSDveQoSdxk zvnY+/31BLSa4V2xO6YXqnJd5Y/lqxCggIxTynOl7+c4ANrzANTSLhbh41VsL6c270Bb bIe2W+AkFDhHTSeNhMgCVuX+8PozAVmsf1DSvmPWaGl2Z4ruNg2DWz2o1tHbittIyuRv g6sY+AHD6DxaLtOFJ+05FQxeFMOUYDoYSqLEZXsZ/3HMS+Ssdps/Q9X9wv0+mg3O5KN6 8pgiHaOBVq2akGdIWvu3N/r2x8vrVhJqvjPAA+rBp4vERfDFyyYnQ4icvZmOT7rvI/VE Nd+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cvXQ4mLFRGvm8zhEeMGUp5Fx2IDR+KBFGhFVEaC/w/0=; b=c8zZ0a/o6NKIMVEvLKafDe5LUOPdYjk01ej1eKqPyxsIlGHv8DUPK1y1CQduiGxFJ+ wvJfGNKYLdJwAtOQYKqBZ8PfEMR3Ai38i+9uKG0u7+TFJhaJeKWMsHq9GGD87vfmCyUM VKEjj7ihYPZ42CsZvHj+mn+YbGHTzNqKb7vgwlq7LLBrTivakSKBcIZPCCXPVSB3FQX+ EsdZq+o9FzhtiSCkKbRmXYGso/xrTK47GP6xUp2Ay3ahSEShFSeQ7oAf5l7MrSHJjm23 ZrmTKhON02pljU7WLHaVjY2XReONIHKVrpm79NHA2BrLt0bjdpRTIbaFyqASbY94g3g5 u7Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XuBPV1SY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 88si35607296plb.288.2018.12.27.10.15.24; Thu, 27 Dec 2018 10:15:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XuBPV1SY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728939AbeL0EFD (ORCPT + 99 others); Wed, 26 Dec 2018 23:05:03 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:45879 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727591AbeL0EFC (ORCPT ); Wed, 26 Dec 2018 23:05:02 -0500 Received: by mail-pg1-f194.google.com with SMTP id y4so8275594pgc.12 for ; Wed, 26 Dec 2018 20:05:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cvXQ4mLFRGvm8zhEeMGUp5Fx2IDR+KBFGhFVEaC/w/0=; b=XuBPV1SYKUgBhRhQ0vneoxdAM8a4F3343q8jR/tIzeCVZ4Z3x4dZUL6y1uGiogE7Fy 4v3+OJfO0bfRRQer1tVCKXWzRhIlzhFLrfqw1CMJAD3UzLStTcDYqCS0pcWk/bhwwy55 ayNaag6o6MGobiQ1q1DuGmAAiW/6O4FQh4m4c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cvXQ4mLFRGvm8zhEeMGUp5Fx2IDR+KBFGhFVEaC/w/0=; b=IHOBkPPiwa6vLJK+RrrsooNx5RGZFf+w1nBc2ikNH+K+zmUvofO6OBuLWHJa2YCvxw jMIOfCbHkc2d8BiA6nz2bPFuRkLwWoOzFLeLfE1mBE1MEk6mvCDUpy7WNscVgIsig5rm FSHO5/rn5fJwKWBNLex0uapWyX1FuU6K7WImJ5PbzG7GnMnZR+jaeZPkBShs0mIvTX1e d/REKUkPruC7sLz2i54KkpPRvyo4XKwm7dylQkoJIV30Rd5GFjT8YRlUkxNp3x0WIhN2 r+x4m3DPUkZ7gadg19T2Bnk+J4htmAs5sI22W+hjr3n6D2miCDqeFifWeksnnsAKZgul mm3w== X-Gm-Message-State: AJcUukcEoNnMx3wclL4bQ66fdZUP5fwop4oHHlS4jat1Z26/ozVs63Tl qQ4Fb3bUjBd23k9Ksg92qALzRg== X-Received: by 2002:a62:6f88:: with SMTP id k130mr22476992pfc.234.1545883501100; Wed, 26 Dec 2018 20:05:01 -0800 (PST) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id k63sm69080469pfc.76.2018.12.26.20.04.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Dec 2018 20:05:00 -0800 (PST) Date: Wed, 26 Dec 2018 20:03:41 -0800 From: Bjorn Andersson To: Marc Gonzalez Cc: Kishon Vijay Abraham , Andy Gross , David Brown , Yaniv Gardi , Vivek Gautam , Matt Wagantall , Mitchel Humpherys , Will Deacon , Arnd Bergmann , MSM , Linux ARM , LKML Subject: Re: [PATCH v1] phy: qcom-ufs: Use iopoll.h readl_poll_timeout macro Message-ID: <20181227040341.GA9651@builder> References: <88cd3a2e-2acc-02ff-9f27-284d3b679d10@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <88cd3a2e-2acc-02ff-9f27-284d3b679d10@free.fr> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 21 Dec 02:13 PST 2018, Marc Gonzalez wrote: > The private copy of readl_poll_timeout is no longer needed. > Use the implementation in iopoll.h instead. > > Signed-off-by: Marc Gonzalez Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/phy/qualcomm/phy-qcom-ufs-i.h | 19 +------------------ > 1 file changed, 1 insertion(+), 18 deletions(-) > > diff --git a/drivers/phy/qualcomm/phy-qcom-ufs-i.h b/drivers/phy/qualcomm/phy-qcom-ufs-i.h > index 681644e43248..f798fb64de94 100644 > --- a/drivers/phy/qualcomm/phy-qcom-ufs-i.h > +++ b/drivers/phy/qualcomm/phy-qcom-ufs-i.h > @@ -23,24 +23,7 @@ > #include > #include > #include > - > -#define readl_poll_timeout(addr, val, cond, sleep_us, timeout_us) \ > -({ \ > - ktime_t timeout = ktime_add_us(ktime_get(), timeout_us); \ > - might_sleep_if(timeout_us); \ > - for (;;) { \ > - (val) = readl(addr); \ > - if (cond) \ > - break; \ > - if (timeout_us && ktime_compare(ktime_get(), timeout) > 0) { \ > - (val) = readl(addr); \ > - break; \ > - } \ > - if (sleep_us) \ > - usleep_range(DIV_ROUND_UP(sleep_us, 4), sleep_us); \ > - } \ > - (cond) ? 0 : -ETIMEDOUT; \ > -}) > +#include > > #define UFS_QCOM_PHY_CAL_ENTRY(reg, val) \ > { \ > -- > 2.17.1