Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp754874pxa; Tue, 11 Aug 2020 14:20:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+5t3EpKbEsOovy1f99qeNvSpSu3V+oeB+s236iyXtSp95nl1niPGSpPPXZmphkum8alE5 X-Received: by 2002:a05:6402:1218:: with SMTP id c24mr27225531edw.44.1597180812214; Tue, 11 Aug 2020 14:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597180812; cv=none; d=google.com; s=arc-20160816; b=XF1d4TK8cQT2qAq47mQD4cdPDC9WhlADH95bPidg+epSst/WOzlCfoGn4BLQ0CS4TD eAHLHAeCnz4hMzuzusVAGiWGK2lt3Kj6u1wZVHX5KC5lBs0KUtM+yUfRvk42l2d4A4Zy Jpjy1wJs3l0uVi1uvJ94uFVT69MEyAZtSYfh5DR+TIYOEOvLr0mio7KGCDyZqEdNM2n5 j6NPCnBnQrUHE9njXVavnnSqs+raO6JaOYmnVaiZiV5+M/KT8xtV2gGLd+qDdUCPxjWY HZKXxpfXSEH8K8cvGu4Eo4KCK0Engw7vM2kPsWQOzQVZroaufxe4UFbpEe6S4jZcYhYh dXMg== 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=2BG7YFgc3xmLmgJtfXAfxYxZdUYNfvRF7uBrIdBJOZI=; b=craAmdCe0juvaYSvOqiBYQRCKHLX4IsnBrsIsrRcqlM+eIRvHi5FIuE4S2ExGLmNs1 fUL874xJsnMtmIkRiZp9VIyb/s/iPDXeQ8CCzLDi6+y+KDpzzRD2X6SHi227SYpYYdy7 Y1xOzFR+07BtD1f86eiNU8OKYXulrlawUx0yBQuyuNPH6zYgYLmO+7YxYeTClbKddecY qxYgQHhfvOK9rwfink/LDyeqPyxpcNmPxGD2xNwAXKoyWlOI1JEOgOTXk6GRpERdGHnA Z31uVOGHSlhxhT8eyJxrA1tIAAyS5qid3j5NOpYfl9CHOZwl59tzbDZJ+R9EqfRXThLN 2EDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MnJEPmUX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si12757277ejk.175.2020.08.11.14.19.49; Tue, 11 Aug 2020 14:20:12 -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=pass header.i=@chromium.org header.s=google header.b=MnJEPmUX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726274AbgHKVRM (ORCPT + 99 others); Tue, 11 Aug 2020 17:17:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgHKVRL (ORCPT ); Tue, 11 Aug 2020 17:17:11 -0400 Received: from mail-vs1-xe44.google.com (mail-vs1-xe44.google.com [IPv6:2607:f8b0:4864:20::e44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCBF5C06174A for ; Tue, 11 Aug 2020 14:17:10 -0700 (PDT) Received: by mail-vs1-xe44.google.com with SMTP id k25so15864vsm.11 for ; Tue, 11 Aug 2020 14:17:10 -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=2BG7YFgc3xmLmgJtfXAfxYxZdUYNfvRF7uBrIdBJOZI=; b=MnJEPmUXAhyAuhSs5WSnq12nq2fZhQVfRdLJq41xeZ5tIkmBvs19n3/rrZy4dJeTq/ Hr2BSIgCS1jVawdeO9VFLOdTRY/rbv4HfKugrQwlxLCf8MhTQf9E6ckjXbcJo5mgFAqt EkNQ+Mt42h3Qy4XjFEI98lnv+39Lw1FIELg10= 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=2BG7YFgc3xmLmgJtfXAfxYxZdUYNfvRF7uBrIdBJOZI=; b=GTUnrx8mDyUz17UeKEIMHpFR8eWh2DoPHrhOToirOuLyWFnVR3cU4EmItPIAgawSpY ayIBzo70mZqMVh9dGd4npzfQBY7BcS/k4DWuMnEscEhoqd67t5Fk2B8jHoYhwkvnmRUl tGU+knYQndGL+PTnOIVRJg7dgdQy+ZuX3MaltPEuJN+YrpJBXvp4wtBaoNIcuJBsIpBI 5m0nr8oeKMs6gWtBPwiY7dT2VUW79DIujjP/A8YiBK8oIUaUVxQ+0pX+3zShPt2iSEUV Qx4MMKTDFqfDPa12IxoL7woxVcn6E95jX8tY+7CwEX/WHtfuLr8+BrFtYpIOvWffSomO MrKQ== X-Gm-Message-State: AOAM5313qABQT0UtC580ciiPI3q+xqVXCJSaELGGvpWSWNjACZ68w6fq AW7a71EVKORfBqrjm4QxreoCieHTBrE= X-Received: by 2002:a67:61c1:: with SMTP id v184mr26058034vsb.56.1597180629190; Tue, 11 Aug 2020 14:17:09 -0700 (PDT) Received: from mail-vs1-f47.google.com (mail-vs1-f47.google.com. [209.85.217.47]) by smtp.gmail.com with ESMTPSA id t191sm26238vkt.46.2020.08.11.14.17.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Aug 2020 14:17:08 -0700 (PDT) Received: by mail-vs1-f47.google.com with SMTP id r7so32526vsq.5 for ; Tue, 11 Aug 2020 14:17:08 -0700 (PDT) X-Received: by 2002:a67:d714:: with SMTP id p20mr26650661vsj.119.1597180627917; Tue, 11 Aug 2020 14:17:07 -0700 (PDT) MIME-Version: 1.0 References: <20200811190252.10559-1-sibis@codeaurora.org> <20200811190252.10559-2-sibis@codeaurora.org> In-Reply-To: <20200811190252.10559-2-sibis@codeaurora.org> From: Doug Anderson Date: Tue, 11 Aug 2020 14:16:56 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] soc: qcom: aoss: Use GENPD_FLAG_SUSPEND_ON flag To: Sibi Sankar Cc: Bjorn Andersson , Ulf Hansson , "Rafael J. Wysocki" , Andy Gross , LKML , linux-arm-msm , Linux PM , Greg Kroah-Hartman , Pavel Machek , "Brown, Len" , Rajendra Nayak , Kevin Hilman 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, Aug 11, 2020 at 12:03 PM Sibi Sankar wrote: > > 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; Reviewed-by: Douglas Anderson Tested-by: Douglas Anderson This makes my patch [1] unnecessary. [1] https://lore.kernel.org/r/20200805091141.1.I86b3faaecb0d82997b599b1300f879606c71e116@changeid -Doug