Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1547785ybt; Thu, 18 Jun 2020 11:12:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBiIAk4Iue6gPp7+DmUoB0y3oICVaWx1p1pnlqsvMTT6f9vYIh0TmCyuIUlnGESTI7Iw9c X-Received: by 2002:a50:a68f:: with SMTP id e15mr5416669edc.285.1592503965094; Thu, 18 Jun 2020 11:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592503965; cv=none; d=google.com; s=arc-20160816; b=NJ6XSYTSRx2JJuT07NfczGxCB95WkNRtHoQCo2QjJaCgCLAge7m+Qb1rvK6eiTwQnI +VXOjWINJTHMkK6tujE6bHLRVFzKXJeBVy9mZCA78AYLwQLV4cbXFilXrm/+9+5orZnh X8oKSwMQUM5EAF8tKoMvhs74opypUH1f/KYxt1dAbQJACsFgAUaZYpcOXu+qwnObHio3 TiHxq/jKsiVHtCgUd5yPYUgQt/bA21rBXSe+M2JPybIvBssAve2lKvn7aYAVDh4nW1D4 NJL+4oyfW4t3/AyoC7XOvWK8b1k5D7+fXhKhWnuwRmcTkT2mOWzG2pDvFnGasDGb4psp r5kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dmarc-filter:dkim-signature; bh=jjmPl8ffifdefNdsGpjiapdQuNH9tn0Yaao34JTd4R8=; b=RdheD4DcjiX3m3nZnUavaoPYQW64EYqRm97GI0QepXTB0ywL5OQac1oEqlcDVyLacj l/OXA/ZNNBuK/AWO907dg4cgUrsbvpYOV2KYs/RYeLQ2VSMiENx4HgpiOv9XIAmaGbwF yz8KdgnSuBmKXV3QnSklXYJkQOQqhAMsVCSjHBk44KtYgeKsqQzKdv9o3zhqQ9dTZVO7 YMOtbfQ3h3SjlR1/5F2AJZOQjCp/6Rg2DEShCrQpKQqia073C+b3w/486g8w5xs96fbg +Qvxn890LSs0o2Ve3/+LDb11yTCKvr1EvUBUEHQQfVW+AbU30jRfSejPoWfyplIjX5A9 7bHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=SdwMOn5h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p26si2269106ejb.592.2020.06.18.11.12.22; Thu, 18 Jun 2020 11:12:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=SdwMOn5h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730552AbgFROKc (ORCPT + 99 others); Thu, 18 Jun 2020 10:10:32 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:37945 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728707AbgFROKb (ORCPT ); Thu, 18 Jun 2020 10:10:31 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592489431; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Cc: To: From: Date: Sender; bh=jjmPl8ffifdefNdsGpjiapdQuNH9tn0Yaao34JTd4R8=; b=SdwMOn5hPHW7Xmm3iZhCgkFKvKEQCULnbPaf4A/3nQRjCe42k1EbTsVjap5reDQn7IvtZk7g QocllmixizEt5FqHCOmwICOSm9pljtd+Z5FuZkM81i6v0LYk5yFF76xenZM/+v02TPE3WAx6 dnnJwY2TA8iRiFVZamw4OMbezug= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n13.prod.us-east-1.postgun.com with SMTP id 5eeb75d0567385e8e7ff6a57 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 18 Jun 2020 14:10:24 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 0BAEAC43391; Thu, 18 Jun 2020 14:10:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilina) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0EF7EC433C8; Thu, 18 Jun 2020 14:10:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0EF7EC433C8 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Thu, 18 Jun 2020 08:10:21 -0600 From: Lina Iyer To: Maulik Shah Cc: bjorn.andersson@linaro.org, agross@kernel.org, georgi.djakov@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, dianders@chromium.org, swboyd@chromium.org, rnayak@codeaurora.org, lsrao@codeaurora.org Subject: Re: [PATCH] soc: qcom: rpmh: Update rpmh_invalidate function to return void Message-ID: <20200618141021.GG12942@codeaurora.org> References: <1592485553-29163-1-git-send-email-mkshah@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1592485553-29163-1-git-send-email-mkshah@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 18 2020 at 07:06 -0600, Maulik Shah wrote: >Currently rpmh_invalidate() always returns success. Update its >return type to void. > >Suggested-by: Stephen Boyd >Signed-off-by: Maulik Shah Reviewed-by: Lina Iyer >--- > drivers/interconnect/qcom/bcm-voter.c | 6 +----- > drivers/soc/qcom/rpmh.c | 4 +--- > include/soc/qcom/rpmh.h | 7 ++++--- > 3 files changed, 6 insertions(+), 11 deletions(-) > >diff --git a/drivers/interconnect/qcom/bcm-voter.c b/drivers/interconnect/qcom/bcm-voter.c >index 2a11a63..a3d2ef1 100644 >--- a/drivers/interconnect/qcom/bcm-voter.c >+++ b/drivers/interconnect/qcom/bcm-voter.c >@@ -266,11 +266,7 @@ int qcom_icc_bcm_voter_commit(struct bcm_voter *voter) > if (!commit_idx[0]) > goto out; > >- ret = rpmh_invalidate(voter->dev); >- if (ret) { >- pr_err("Error invalidating RPMH client (%d)\n", ret); >- goto out; >- } >+ rpmh_invalidate(voter->dev); > > ret = rpmh_write_batch(voter->dev, RPMH_ACTIVE_ONLY_STATE, > cmds, commit_idx); >diff --git a/drivers/soc/qcom/rpmh.c b/drivers/soc/qcom/rpmh.c >index f2b5b46c..b61e183 100644 >--- a/drivers/soc/qcom/rpmh.c >+++ b/drivers/soc/qcom/rpmh.c >@@ -497,7 +497,7 @@ int rpmh_flush(struct rpmh_ctrlr *ctrlr) > * > * Invalidate the sleep and wake values in batch_cache. > */ >-int rpmh_invalidate(const struct device *dev) >+void rpmh_invalidate(const struct device *dev) > { > struct rpmh_ctrlr *ctrlr = get_rpmh_ctrlr(dev); > struct batch_cache_req *req, *tmp; >@@ -509,7 +509,5 @@ int rpmh_invalidate(const struct device *dev) > INIT_LIST_HEAD(&ctrlr->batch_cache); > ctrlr->dirty = true; > spin_unlock_irqrestore(&ctrlr->cache_lock, flags); >- >- return 0; > } > EXPORT_SYMBOL(rpmh_invalidate); >diff --git a/include/soc/qcom/rpmh.h b/include/soc/qcom/rpmh.h >index f9ec353..bdbee1a 100644 >--- a/include/soc/qcom/rpmh.h >+++ b/include/soc/qcom/rpmh.h >@@ -20,7 +20,7 @@ int rpmh_write_async(const struct device *dev, enum rpmh_state state, > int rpmh_write_batch(const struct device *dev, enum rpmh_state state, > const struct tcs_cmd *cmd, u32 *n); > >-int rpmh_invalidate(const struct device *dev); >+void rpmh_invalidate(const struct device *dev); > > #else > >@@ -38,8 +38,9 @@ static inline int rpmh_write_batch(const struct device *dev, > const struct tcs_cmd *cmd, u32 *n) > { return -ENODEV; } > >-static inline int rpmh_invalidate(const struct device *dev) >-{ return -ENODEV; } >+static inline void rpmh_invalidate(const struct device *dev) >+{ >+} > > #endif /* CONFIG_QCOM_RPMH */ > >-- >QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member >of Code Aurora Forum, hosted by The Linux Foundation >