Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2109087ybb; Thu, 2 Apr 2020 13:18:23 -0700 (PDT) X-Google-Smtp-Source: APiQypIn5oJ9JZ2IdTqtpQej+lr1r27ZQaza0p3vOy5CR0dw5vC327SW4InOA23x06h0FtapN0Ue X-Received: by 2002:aca:4d8:: with SMTP id 207mr644779oie.70.1585858703790; Thu, 02 Apr 2020 13:18:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585858703; cv=none; d=google.com; s=arc-20160816; b=klOdNjV6Gf2WOsc5i5fUu5BjxpOFs6SkP+l4Ffl8Uncf+tJaKgiVJmJETYn2oXh/RR 502H/ojL04p9a1dwtTIeWBmM8VQzb/lAp+W+/qGS1+YV5Rn5scmwXl27cPjW4zCdajrg 2KobZMAj4nghdMD00vSaHyea3mFNCRvz+fWprMRoVghSakqjHnn8dz9qd5ECJ9h/WZ0n XjbRuQOZINGae70SnBlo2R4YIv8dCkzaVTn8kAfs1v8mM/6ojleD6ZtKH1qO2dUkgSfN jgeatfJO0GGYEAIFmGzh81V4Tgn2isqsdNPSElyJJ0UtCJE04/PD7M0cNpMYRzshd7E7 DliA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3xnVk01EXqzg7moA4R1yAW9PPXebyh4g8UETIH3Gq/E=; b=cgen99j7cmNH3kgcnk95yvsd7dQMIILP31Mte3Vg1d5Tp4UYhree5Y78wH+V7MxpaK Sv9IkFiIqiKYqB82h6x5tMR7yWkg0RkPFzu7uzgaMrZmd90TXtWEBUBdl2aIagJGatLX hvXoO+9v0wZgu7YA/U0z2g68lfILbB3/2q2gpnoIsVgr5KTaOzGnSVVVO3pGCNFf8A86 zA652dJ77RRlTsX8fnSFZYLkROVIXVmMWh6n+rccJwuh+/MS74nfxgDV9fPoadgQQpX4 ZGMZ462gSf/jl+p7fwaNwjn9LxLNDhVLpE6Yfrh7RnsdGTSPCs6L8Tp2nA+VmrloSrlP O+Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="IDP378Q/"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a66si2554158otc.172.2020.04.02.13.18.10; Thu, 02 Apr 2020 13:18:23 -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=@chromium.org header.s=google header.b="IDP378Q/"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389112AbgDBUOi (ORCPT + 99 others); Thu, 2 Apr 2020 16:14:38 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:36878 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388148AbgDBUOi (ORCPT ); Thu, 2 Apr 2020 16:14:38 -0400 Received: by mail-vs1-f66.google.com with SMTP id o3so3424567vsd.4 for ; Thu, 02 Apr 2020 13:14:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3xnVk01EXqzg7moA4R1yAW9PPXebyh4g8UETIH3Gq/E=; b=IDP378Q/VvOE2mD9ZMEgZg6Z1NnCKss4dfxlUumNJhwIKibnLnUWx6Ipu5w2nFNGS9 tny5YIJ+kPWqMna/I7tp4bFp4lJVUccz4q9Sh2C4rbD11PpHkIG/IsaN0k2iPdzE/sxa Dd6vyDJpxsmtUysn8dvyLRARqbr9P9fZpsoM4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3xnVk01EXqzg7moA4R1yAW9PPXebyh4g8UETIH3Gq/E=; b=mBJEYiJD6bz9fZK32feEDK5kCYG9tDvidqYf+Ht+vsVOVNAfHqmTiW5DuH0MVvC+xQ jUjEVDCmXIfCcazcofNTW2rdBsIJIfaDlQ7kGra+xdugbOow8N2ZvZtyxxVgIYWkOYkX xmhxDqaeuXKrLwPOUOJP+5z7eBBZxPEUbv5+w3saWpjAznpCd+jvm1IHbMdQgFDoMO5F +E9WAX/lBrA8a+g8NgkgN1CXf3zXh2cmc+ptCFnPGZURd24wkK2j2Y2UcoM0TJlTh0VW wQSlhVO8I/QqveA6d7o1+FUwCSt5phLd886ChjbxO52gWHRVhHHerX972ErxGa96SlKJ tgdw== X-Gm-Message-State: AGi0PubhXLoXo8mlQOvVavP+5UDx94MFSWtZ4PhggmxIptgvG7dXOWJQ 0srt/A0G5shVKOl9jCo4EEEXael0vK4= X-Received: by 2002:a05:6102:10dd:: with SMTP id t29mr4051196vsr.229.1585858476434; Thu, 02 Apr 2020 13:14:36 -0700 (PDT) Received: from mail-vs1-f43.google.com (mail-vs1-f43.google.com. [209.85.217.43]) by smtp.gmail.com with ESMTPSA id g135sm1665254vkg.48.2020.04.02.13.14.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Apr 2020 13:14:35 -0700 (PDT) Received: by mail-vs1-f43.google.com with SMTP id w14so3420220vsf.7 for ; Thu, 02 Apr 2020 13:14:35 -0700 (PDT) X-Received: by 2002:a67:2c81:: with SMTP id s123mr4049018vss.198.1585858474864; Thu, 02 Apr 2020 13:14:34 -0700 (PDT) MIME-Version: 1.0 References: <1585660782-23416-1-git-send-email-mkshah@codeaurora.org> <1585660782-23416-7-git-send-email-mkshah@codeaurora.org> In-Reply-To: <1585660782-23416-7-git-send-email-mkshah@codeaurora.org> From: Doug Anderson Date: Thu, 2 Apr 2020 13:14:23 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v15 6/7] soc: qcom: rpmh-rsc: Clear active mode configuration for wake TCS To: Maulik Shah Cc: Stephen Boyd , Evan Green , Bjorn Andersson , LKML , linux-arm-msm , Andy Gross , Matthias Kaehlcke , Rajendra Nayak , Lina Iyer , lsrao@codeaurora.org, "Raju P.L.S.S.S.N" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Mar 31, 2020 at 6:21 AM Maulik Shah wrote: > > @@ -243,6 +279,14 @@ static irqreturn_t tcs_tx_done(int irq, void *p) > } > > trace_rpmh_tx_done(drv, i, req, err); > + > + /* > + * If wake tcs was re-purposed for sending active > + * votes, clear AMC trigger & enable modes and > + * disable interrupt for this TCS > + */ > + if (!drv->tcs[ACTIVE_TCS].num_tcs) > + __tcs_set_trigger(drv, i, false); Still seems weird that we have to do the untrigger in the IRQ routine here and also weird that we _don't_ do it in the IRQ routine for non-borrowed TCSes. I guess it's not the end of the world, though. Reviewed-by: Douglas Anderson