Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2059245lqp; Tue, 16 Apr 2024 06:24:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWAMDdDRFx/9388Z+JZ+U1rQwKTWstB4bxTkXOBL0nbwm2Mz6W+V4KJB1ELRcBj2DblveCuMLTnZy/L8tiQUOlyv6jW2YU6yT1fp8/vXA== X-Google-Smtp-Source: AGHT+IFC18J0Lg49U5R1WZxEEG66CKM99n0Rb9zoc8Ectuh5wOOZLXskqloeBkJiezZMY0FB+eGY X-Received: by 2002:a17:90a:f309:b0:2a5:f85b:8b2c with SMTP id ca9-20020a17090af30900b002a5f85b8b2cmr10932706pjb.14.1713273893200; Tue, 16 Apr 2024 06:24:53 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e24-20020a17090a9a9800b002a5d3134d32si11574865pjp.39.2024.04.16.06.24.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 06:24:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146872-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-146872-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146872-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DF8A02814A0 for ; Tue, 16 Apr 2024 13:24:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4C6A12C483; Tue, 16 Apr 2024 13:24:46 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A63BE12BF25 for ; Tue, 16 Apr 2024 13:24:44 +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=1713273886; cv=none; b=dmZLHsF94d0JLTPSsC//oopiZcVV/oN6r1+PGc6zBvFBEHj/5i/cmuODbXBmkjIBIUy7moXx7k6Ooao9RFmPDqQke/BRYfpj6ZcLpsnABEPLhHqJFdNT1yMpZE407Ex+BXuaAdIMTWYoAof/jtBfXqw+H0TtQPDxRcLIM4kpfpY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713273886; c=relaxed/simple; bh=cT3ohBAsCHwAas+oiEvZw/9G87J4V3yjv8xhQMMqeXE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aMVsLF3uhjZM4wCzyg98qcKFjeLeOus8f3QnnQqIbdXuXy2Cct5YI4ftAm6wygLSZYkIT0ZwQq0qU1pTLtifpxisj2Fy+H3xx3hae7Xnh+u8j9ADtSshlfpxyg3qD3Kz5vVGOipxiwBTW5SeuNyxzqOdHFvfEDnZ+eCCV/NGV4U= 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 31580339; Tue, 16 Apr 2024 06:25:12 -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 13FBE3F738; Tue, 16 Apr 2024 06:24:42 -0700 (PDT) Date: Tue, 16 Apr 2024 14:24:39 +0100 From: Cristian Marussi To: Peng Fan Cc: "Peng Fan (OSS)" , "sudeep.holla@arm.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] firmware: arm_scmi: power_control: support suspend command Message-ID: References: <20240415101141.1591112-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: On Tue, Apr 16, 2024 at 12:34:14PM +0000, Peng Fan wrote: > > Subject: Re: [PATCH] firmware: arm_scmi: power_control: support suspend > > command > > > > On Tue, Apr 16, 2024 at 07:01:42AM +0000, Peng Fan wrote: > > > Hi Cristian, > > > > > > > Hi, Hi, > > > > > > Subject: Re: [PATCH] firmware: arm_scmi: power_control: support > > > > suspend command > > > > > > > > On Mon, Apr 15, 2024 at 06:11:41PM +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. [snip] > > But, as said, I dont think there is a way to trigger a userspace suspennd from > > jernel like we do for shutdown/reboot...I'll try to investigate a bit more. > > Thanks for helping. . also scmi_power_control.c:95: warning: Function parameter or struct member 'suspend_work' not described in 'scmi_syspower_conf' Thanks, Cristian