Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp678881ybi; Sat, 29 Jun 2019 21:07:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSfdUnwPTQ6xSe+v1fSCJw8NvQUh9eTUpLp5D+brjOR2txIjmWk/CXthmHOYhfHjJyG8zf X-Received: by 2002:a17:902:ab83:: with SMTP id f3mr21312519plr.122.1561867621448; Sat, 29 Jun 2019 21:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561867621; cv=none; d=google.com; s=arc-20160816; b=o0UnD5t1Q1BpkdZSl/vylpS49WKsqtrk0+P45S5R/qHidvF5HymHto6oiXdSSdySmY ZeZjO2DQ/Wa8hC5sIDhLs6XO/oE2mZen1BY/gftPXpJZYP1Uq3rnrqbd/OFb965oEToO JMbozcFmNY6aCQokTCrNNV0026NyhWLZY0AFdiEklQd+LyCR1FkiJpwKIg/jjBhDEgq3 unAc7wsPNPnh9zAj7ElVMoruTukpqlSgHtbxah83AQaQUgFlzRT1uumUX7pgS4Zh/PFx O7/V3/lJyxNsOCq9lEYjX2v3VOLNB2GBcFd+rBOzyo2jk5mR15qkQ+Fxzx7sh5bMmwuM JRwQ== 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=nZ4faO3Hxt6Vv9DkaePS/Kvvg767f3TOfeZ7FItgRpc=; b=KFQQv2bmxa1DBkElzf9nE8YkU+s/nHqWi7ZiSCmG1t0o1f6x4hL2D4z2JP+z8o54H0 a10ld4vTayfCNJ4Nh0eBjcDUcgVBN7xwxatCaOFLyiYfdUTiHsmgvXrRlZ70QkEIfFmF ozV2r8LSNvtZJUG8kdMbeTqYcHujX65bzvt1/JLvHm9C1w6RsiXDJqjhyrPOZEVJJ8Zi KYmUAVLucjX1u3Q6LsqBmoZAJYfyhOiqldSBv/g1gHTBysYzZUFMRFmsZei2IYhVmKko rmHWDB+TbnX2ExzP4NnUKvuOZVrLnrdCC9pi/R2Ww48hBtb+aNzNB2kI+yzxbiYYl+DZ QZdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rl7EAg+f; 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 cp14si6621910plb.183.2019.06.29.21.06.44; Sat, 29 Jun 2019 21:07:01 -0700 (PDT) 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=rl7EAg+f; 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 S1726445AbfF3EF0 (ORCPT + 99 others); Sun, 30 Jun 2019 00:05:26 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:42447 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725771AbfF3EF0 (ORCPT ); Sun, 30 Jun 2019 00:05:26 -0400 Received: by mail-pl1-f195.google.com with SMTP id ay6so5441254plb.9 for ; Sat, 29 Jun 2019 21:05:25 -0700 (PDT) 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=nZ4faO3Hxt6Vv9DkaePS/Kvvg767f3TOfeZ7FItgRpc=; b=rl7EAg+f3oXHBc8Pbo//vWa3my/Z7+d6GEro+N5fRkuf6eXL3Ar1+FGnrNGb58Nkyp c7f4MXGR0IHjlG7BmA/rmUzxOAnzGP6xMCHReP4yqY7rm3uihkIYFlHy3wUjZDJ+M/Zb I4I+XIWi4KVSVqdJxjdxlhdrAdIcqttsszNBUKYbP0wRubhUFc7zFvMQ4Icd1Vr/OWHA Q3y9oGRxxyPp07pxYRbtvqicG+f3Cwc8lH89BWEeheh3G9HiL3+ytCZtYrqHxKeNE6qj xFOCGAzC1hlSrLGFC34ZqTBi5S1XvC4x7RPzAUW2Pfb27bY6g4qhSCfWI/rBNsOVj4dh Ah/A== 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=nZ4faO3Hxt6Vv9DkaePS/Kvvg767f3TOfeZ7FItgRpc=; b=X16hc5a8lLG783dNMhU5xfeZ5wjWKqf8vs1dJnFFsj+BUx4yDbU3VPpub6KQr8UKPo LbkUpYct7oAWxgZOytD1GXfUnK7xq9oGqBCVxOrIj0jzE/J5YUxc4W9OuR2tQjUKm4dp nCCE+r5swJb74aohYkdoKdA/r5RHhep78Rp3lC0KkPCA+HYrh9I82PVwTHUbHEtYwrbk xIBY0k6a8MIeztVe92BvhXOmUrf9tyr3MKKl+uHdDDGFJADtscbJQDd3+eaefxjC7hcs Vg53tblfBNbMpP6wZ4nOn4zxO6nVLXa0ezoSSjA7/PJy7iin3INCjfOY38iEALXGvMG2 PBQw== X-Gm-Message-State: APjAAAWFQ6NEA40jHa3mfnMNy6U9gugUB92wI/AwerRIqO7HbJiFZ6b6 gMG9dPEYqnLgfQIYUTJGKXDLPQ== X-Received: by 2002:a17:902:a40c:: with SMTP id p12mr21215977plq.146.1561867525153; Sat, 29 Jun 2019 21:05:25 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id z13sm6984605pjn.32.2019.06.29.21.05.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 29 Jun 2019 21:05:24 -0700 (PDT) Date: Sat, 29 Jun 2019 21:05:22 -0700 From: Bjorn Andersson To: Fabien Dessenne Cc: Ohad Ben-Cohen , Maxime Coquelin , Alexandre Torgue , linux-remoteproc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: Re: [PATCH] hwspinlock: stm32: implement the relax() ops Message-ID: <20190630040522.GA1263@builder> References: <1551973336-23048-1-git-send-email-fabien.dessenne@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1551973336-23048-1-git-send-email-fabien.dessenne@st.com> 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 Thu 07 Mar 07:42 PST 2019, Fabien Dessenne wrote: > Implement this optional ops, called by hwspinlock core while spinning on > a lock, between two successive invocations of trylock(). > > Signed-off-by: Fabien Dessenne Applied Thanks, Bjorn > --- > drivers/hwspinlock/stm32_hwspinlock.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/hwspinlock/stm32_hwspinlock.c b/drivers/hwspinlock/stm32_hwspinlock.c > index 4418392..c8eacf4 100644 > --- a/drivers/hwspinlock/stm32_hwspinlock.c > +++ b/drivers/hwspinlock/stm32_hwspinlock.c > @@ -5,6 +5,7 @@ > */ > > #include > +#include > #include > #include > #include > @@ -42,9 +43,15 @@ static void stm32_hwspinlock_unlock(struct hwspinlock *lock) > writel(STM32_MUTEX_COREID, lock_addr); > } > > +static void stm32_hwspinlock_relax(struct hwspinlock *lock) > +{ > + ndelay(50); > +} > + > static const struct hwspinlock_ops stm32_hwspinlock_ops = { > .trylock = stm32_hwspinlock_trylock, > .unlock = stm32_hwspinlock_unlock, > + .relax = stm32_hwspinlock_relax, > }; > > static int stm32_hwspinlock_probe(struct platform_device *pdev) > -- > 2.7.4 >