Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp673439pxa; Tue, 11 Aug 2020 12:05:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpEtLD8phd86sTPQDwL7w56gu+hr5MMNBA5Hu2KwvvbScPfFcwgLT2fLnQ4MrEtSpeetz0 X-Received: by 2002:a17:906:e289:: with SMTP id gg9mr29348806ejb.448.1597172725874; Tue, 11 Aug 2020 12:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597172725; cv=none; d=google.com; s=arc-20160816; b=jWilx6lgOCkT5qSlwAtiZvbMscBnaWDdRd7aQuyhzjALnT4MYOfdOdm34aQm2KsSKw Zm9B05cMqre7gcPDT6D5l3oFkt3DvdqbeC7+UFtWLP+mK+qSz8wLz9xPP74h45u7i3Wh HAd2WJk6GWrjQBNlvJOtXZi7/imXtsW+/iV41J/aPUgWm2tSBgFPnTlCNAOooPUOrFUp 37l22Y8YBpDnG5P3ggiDvsNDkpFyHRCCIMFkQCL/7fAAWz+YY5m7Hi2JfY3aG2+x+G+c OKFz17+4GS/TsIkV0rxiicq5De4VosCZ5p9oB8U7Y69ze9Tmh0xSeaMX1TXHEZkXJBnF jm7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=+3oLMOjRVphuPQ+PhEKkKC/mDHCGYkvA89mtuFU3+3Y=; b=Jf5nR2yPudTFmcg6oaBoqIDL+Ihl2Nqn+gxsLcOBysuisVwjr+hian8x3KN7pbAR4w Qi8B/jOjtnxbLZFsVHV7f7hcQfL4RDfQyQjLbTPhQaE/UIejigH7/HcSxAShU4Dbys3M J417GYcvmz8n2i+RK+M1oe1oQxXliMnQPw7mwBvUsDmgfYLDJmBI05MNFcRLUzc6CzPz wLbwxXUVCkGWIeZsC0J510zJ+sT2QBrKHmmMyi+xJA7ZNSAHyTPG4oQo7ceDi94RCbzC HkAtJ/u6xAUmT3FSZGsZ5MuKdK2xJW3kgMHPjHqGn6VWnk9KDoalccgbwr+3Lww+t+gp fe+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=sk3i5lfo; 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 e24si12901237eds.212.2020.08.11.12.05.02; Tue, 11 Aug 2020 12:05:25 -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=sk3i5lfo; 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 S1726428AbgHKTDk (ORCPT + 99 others); Tue, 11 Aug 2020 15:03:40 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:39044 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbgHKTDj (ORCPT ); Tue, 11 Aug 2020 15:03:39 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597172619; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=+3oLMOjRVphuPQ+PhEKkKC/mDHCGYkvA89mtuFU3+3Y=; b=sk3i5lfo2qlSx2lUqlCEiazgrLeGYC0XXpiLeL11bXP+TuYdg4xGmfvPfDYaNFxwJ4xUpNWt 8WOp6ESjM3twBB2SCYqNZ5K+RbOLzk7oxUlvspbu8IXvUjTYrPzslArxNT6aPbTWzLd71Fln qwsacxYYdcajYzUfI94wvvaZdsk= X-Mailgun-Sending-Ip: 104.130.122.29 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-n11.prod.us-east-1.postgun.com with SMTP id 5f32eb79ba4c2cd3676fcc0b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 11 Aug 2020 19:03:21 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 15EF5C433C6; Tue, 11 Aug 2020 19:03:21 +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 blr-ubuntu-253.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9FCB0C433CB; Tue, 11 Aug 2020 19:03:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9FCB0C433CB 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=sibis@codeaurora.org From: Sibi Sankar To: bjorn.andersson@linaro.org, ulf.hansson@linaro.org, rjw@rjwysocki.net Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, gregkh@linuxfoundation.org, pavel@ucw.cz, len.brown@intel.com, rnayak@codeaurora.org, dianders@chromium.org, khilman@kernel.org, Sibi Sankar Subject: [PATCH 2/2] soc: qcom: aoss: Use GENPD_FLAG_SUSPEND_ON flag Date: Wed, 12 Aug 2020 00:32:52 +0530 Message-Id: <20200811190252.10559-2-sibis@codeaurora.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200811190252.10559-1-sibis@codeaurora.org> References: <20200811190252.10559-1-sibis@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All the power domains exposed as part of AOSS QMP driver require to stay powered on for suspend. They are powered on when the remote processors boots up and powered off on remote processor crash/shutdown. Mark the power domains with GENPD_FLAG_SUSPEND_ON to model this behavior. Signed-off-by: Sibi Sankar --- drivers/soc/qcom/qcom_aoss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/qcom_aoss.c b/drivers/soc/qcom/qcom_aoss.c index ed2c687c16b31..5a5b4bf928147 100644 --- a/drivers/soc/qcom/qcom_aoss.c +++ b/drivers/soc/qcom/qcom_aoss.c @@ -366,6 +366,7 @@ static int qmp_pd_add(struct qmp *qmp) res[i].pd.name = sdm845_resources[i]; res[i].pd.power_on = qmp_pd_power_on; res[i].pd.power_off = qmp_pd_power_off; + res[i].pd.flags = GENPD_FLAG_SUSPEND_ON; ret = pm_genpd_init(&res[i].pd, NULL, true); if (ret < 0) { -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project