Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp847285ima; Wed, 24 Oct 2018 10:05:25 -0700 (PDT) X-Google-Smtp-Source: AJdET5cxOio4G8OCFQ++OG1Eve4HnFHpry2rORqRL329Yc8ccLAESE53U2UUdokJTXs/Pxp7G4vK X-Received: by 2002:a62:8281:: with SMTP id w123-v6mr3418147pfd.68.1540400725853; Wed, 24 Oct 2018 10:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540400725; cv=none; d=google.com; s=arc-20160816; b=MwrbvgRSbld253zvLMn04ZxbYYAFhvlO+DULxVtJOJI2yvHDfJvAchSMPQAaVTGPgo K7mp6NCXBlpVkvwqBbQ0sl7Lg8DK3FFTh2avyIHN1MSkt06fSSrRqFF7YUWKEHjWX6wk ru3ILjTx8nf2rQ4yEZbEcaDLKqG06F+m9TKJpEQcKFub6tSh7AzCjYGB0qZQqvF7enRA 8Kk5ufcwLGVgHg0hKWVa9MytVTrpaCFfigCRBF0ECsgf9Qgr+zYVHKYYU+VQhv3sU7mg TG+onnKAJptrKW0Aa+o6P+6F8y++KzgRpXRRoNt6FkifDlMMJHD7AADPBTM/0f8M/JPw J3qg== 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:dmarc-filter:dkim-signature:dkim-signature; bh=f/pwwmJXLHGs5H6EtygXVnp+bpR7eBzMmVkX0zxxn54=; b=PamkUy3HhsNBICmSu9xSItYCKq/BcPKk9WbC8kSXJGvhRINT77hRUOxYAoWrwsE0OY O4Rs22CjFOTzMU+NcKu0clEcGAyDNjLJiMO9ZbE2/A7lpeHIzu0AGZKcwA8RllKHeLeW jDhSacN2QX8176cz8m3PVNbBnB0E3kmHk+CeoIS0U8jAskxVjmb1arIKJgbKE7UU026G kQPkV7dXl9eK+s1hgknN3qVBkBF8Xvd+28o8G2VXt94HK0RZhAqf9CS6JAh3WBsmfJ1u mFiSE7tfC7f9mOOjs2xfRMlTqh3y1ZmqiTRCa/Kqo3fAhJ3mh8mIP3Vb6kW29lAuH7p4 wCgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=m500nsSC; dkim=pass header.i=@codeaurora.org header.s=default header.b=W0YHYWge; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x186-v6si5389391pfx.19.2018.10.24.10.05.10; Wed, 24 Oct 2018 10:05:25 -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=@codeaurora.org header.s=default header.b=m500nsSC; dkim=pass header.i=@codeaurora.org header.s=default header.b=W0YHYWge; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727116AbeJYBdW (ORCPT + 99 others); Wed, 24 Oct 2018 21:33:22 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60664 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbeJYBdW (ORCPT ); Wed, 24 Oct 2018 21:33:22 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2E4BD60C64; Wed, 24 Oct 2018 17:04:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1540400671; bh=OvRVgb7YkaOg6/LwRpY2RAq54ZIKv7ScWEXYHWlJIU4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m500nsSC+hivtM/Zkc7PnXRl0ePE9Yo9dPHa8h1spkx10JpL0jUCPRbB5ilwb5y/o Laggf96ObLvrAJs3bJtfGSm3DrK7+fexoZDXm1/EukNTb4dClDsSmd96fKC/K97WSc jMWo2mYS9h3l32e0StOYYcvUTa3h1hKFaC/DKFKw= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no 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-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 89F5160C1B; Wed, 24 Oct 2018 17:04:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1540400670; bh=OvRVgb7YkaOg6/LwRpY2RAq54ZIKv7ScWEXYHWlJIU4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W0YHYWge0vL0WFXKyW22fSIEg55+UGvA7KgoTsPTEX22YiQCAjecsClpCS2ccMHEq Q75BwlWSeQQq/syrnArRGgItxe8HtLJRFKSBz2fwR7/8Cyhek7aL+MwOQe/g673356 yQSGxJ102dROwAY4cibglm5dURbsTOAdTrHfwtBw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 89F5160C1B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Wed, 24 Oct 2018 11:04:29 -0600 From: Lina Iyer To: "Raju P.L.S.S.S.N" Cc: andy.gross@linaro.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, rnayak@codeaurora.org, bjorn.andersson@linaro.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, sboyd@kernel.org, evgreen@chromium.org, dianders@chromium.org, mka@chromium.org Subject: Re: [PATCH RESEND] drivers: qcom: rpmh: avoid sending sleep/wake sets immediately Message-ID: <20181024170429.GE17444@codeaurora.org> References: <1540315748-29158-1-git-send-email-rplsssn@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1540315748-29158-1-git-send-email-rplsssn@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 23 2018 at 11:29 -0600, Raju P.L.S.S.S.N wrote: >Fix the redundant call being made to send the sleep and wake requests >immediately to the controller. > >As per the patch[1], the sleep and wake request votes are cached in rpmh >controller and sent during rpmh_flush(). These requests needs to be sent >only during entry of deeper system low power modes or suspend. > >[1]https://patchwork.kernel.org/patch/10477533/ > nit: [1] https:// >Signed-off-by: Raju P.L.S.S.S.N >Reviewed-by: Lina Iyer >--- > drivers/soc/qcom/rpmh.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/drivers/soc/qcom/rpmh.c b/drivers/soc/qcom/rpmh.c >index e6e98d4..877fe78 100644 >--- a/drivers/soc/qcom/rpmh.c >+++ b/drivers/soc/qcom/rpmh.c >@@ -228,9 +228,8 @@ static int __rpmh_write(const struct device *dev, enum rpmh_state state, > WARN_ON(irqs_disabled()); > ret = rpmh_rsc_send_data(ctrlr_to_drv(ctrlr), &rpm_msg->msg); > } else { >- ret = rpmh_rsc_write_ctrl_data(ctrlr_to_drv(ctrlr), >- &rpm_msg->msg); > /* Clean up our call by spoofing tx_done */ >+ ret = 0; > rpmh_tx_done(&rpm_msg->msg, ret); > } > >-- >QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member >of the Code Aurora Forum, hosted by The Linux Foundation. >