Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp475355lqm; Wed, 1 May 2024 06:37:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUicfHQS/TCOUN3O9MR2cyv3Ox2nVM3l4sn/nA4Ew7Gx38pYqEEM4ngPwk4sTSO9NeE/qx4WMJPfmUJQTZ8b/BrjH8EXj3fLmNliPm/pg== X-Google-Smtp-Source: AGHT+IEczg+FbYC56v205iFrDvSUXNFtPrhbiklQI4EDfu3TXQctk7oibsprTvdxSFYr0VmCjgk8 X-Received: by 2002:ac2:5df7:0:b0:51a:f689:b4df with SMTP id z23-20020ac25df7000000b0051af689b4dfmr1953797lfq.44.1714570621930; Wed, 01 May 2024 06:37:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714570621; cv=pass; d=google.com; s=arc-20160816; b=cGfT+7psHU+gVPz4MtbFjwaurHUhRs8sO1qS7ygO1MyDnKx0dBgW7pIGVJinl7aP5X 99oUnAHfjE22YR/Nxx2QKmol9wukKyzQrRHFnbdoFKT70EYv9//XJwQ81LAMvH41ymB4 Ae4mnvDcfmDFmio4QwtzfUWouhvBRilLeKmWp5qOLYAm+EUiJQl9kY00Rv2UxlkL9YSv j30Toux8SzJ5Z+AbYY8pVBo0TSXXXm/U8avDpPn4Qvl+kdeNItdfqAFG1uJRcNUAhWZQ 5YrDdRkFjqN5qWB6DnDWbxYeZii7AsJlMpFXb4zgo++VDcT03ha55ygSfg/4PDymmsi4 FldQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=p09COR3w/6XsffYCmty8teOFmRyRPXRLsn5rVLkA1qU=; fh=S/pMqPDmjo/4VD0nBsUpTIRgPQaLL2yMrSsKl25q6z8=; b=O02CjJ/mRNK4W9/vkydPtTAVkStNrRWfulpy1ZZnL5qqMWoPtmRigIUEjWPyWGInCh qREbw5p/QiwJfE6thbYHKuegFJozGefpjiMtJ5Vz59CGeeFANPv3IRjUsgeKRt+I5XO3 MHgQnHK3MXMRN1lvw543lWvM/xWlaZpkiueFiKfL77HuEyaC9Ceo1jxWeWYNy1XF0rvS xSmHL1XnA8lE5+Vu01kpCwBQA1uniGP7ymy79sgu3afBOqQwye4e8K6wE6FJg48Qk8b2 vjnJSyCkRmFmZxUP7bZndVXqxNKVCmsNUBF6h3UyfqGAcaEFrfShS1/xHwzdKsh1qajD gDSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-165324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165324-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h17-20020a50cdd1000000b00572228a7966si10158258edj.315.2024.05.01.06.37.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 06:37:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-165324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165324-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CA1271F20F36 for ; Wed, 1 May 2024 13:36:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06E1212E1D9; Wed, 1 May 2024 13:36:51 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7281F51C49 for ; Wed, 1 May 2024 13:36:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714570610; cv=none; b=lveG/BVKXQUWxwZRWSJKRRkb7pyrSepop0u+TplX5VOxDpuQNPBaF/37Vj7H5NN/wnXoreuAv0aCv1zlGRVcn2CEtaJZUeoHHMOu/7WmfHUrdK3pRmeLR83tMLnV55+LIgzXBzytCcfCqBgWFRtnBwvFGy1gRS2PjB9u07OyRto= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714570610; c=relaxed/simple; bh=zTsdvuMoDV5ibhpwBED87HJwZ2l0YhEWLx3/N/6clNY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a8HjqL4UI6JAkajxw0HEnZtiDYJ2YuuTx8bLFs1JDWVCCH6K/VzadOfqBSrFZfGB7dn+V6Vz8Z5aslHB0D0Vx8P494WtMAXDB62jdOcvpF6jiWv0qO3UoMGRyxQ4Qa07+JuKFI/pxYJz9647mzp0bshdUCvWpxN03eGuxYDSOvE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E10912F4; Wed, 1 May 2024 06:37:13 -0700 (PDT) Received: from pluto (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EBB9F3F73F; Wed, 1 May 2024 06:36:46 -0700 (PDT) Date: Wed, 1 May 2024 14:36:44 +0100 From: Cristian Marussi To: "Peng Fan (OSS)" Cc: sudeep.holla@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: Re: [PATCH V2] firmware: arm_scmi: power_control: support suspend command Message-ID: References: <20240428075105.2187837-1-peng.fan@oss.nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240428075105.2187837-1-peng.fan@oss.nxp.com> On Sun, Apr 28, 2024 at 03:51:05PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > Support System suspend notification. Using a work struct to call > pm_suspend. There is no way to pass suspend level to pm_suspend, > so use MEM as of now. > > - The choice of S2R(MEM) by default. The userspace can configure whatever > default behaviour expected as S2R, if issuing suspend from userspace. > > - The userspace needs to keep the wakeup source enabled, otherwise the > system may never resume back. > > Signed-off-by: Peng Fan > --- Have you tried triggering a suspend with this on your setup ? Anyway, LGTM. Reviewed-by: Cristian Marussi Thanks, Cristian