Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2672376pxb; Tue, 9 Mar 2021 08:10:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxA5VE1NT35HezwpoNEvEkyxWvbWoT639So8gPonmgzvId6fn1p+Dll7yI603cmIurBZzlf X-Received: by 2002:a05:6512:3618:: with SMTP id f24mr11344510lfs.34.1615306240146; Tue, 09 Mar 2021 08:10:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615306240; cv=none; d=google.com; s=arc-20160816; b=rr73X8voC3YWVfGhX6cYgWATpx2JpMZHV96lubU/j4DH5gvlvwLEU8ucjIF2jNGUqH uvBea4QvQ/IsMgWTNSZ1Yw5yuD36zoxSjDqiets43te5eKvbJY79GSPqVuXlhQxa5y9N 3zHuhUUX9MADc1e0kaERm6jWuN2rn9So0BHUa7oVCjlrlf2As70ImVyfwFDDFZgA9PUC Z8CxUk8EX95TVV30aWmwJwJ0zKmj8/NocP2Rzis96oFTqfvZAuwy+Hn8KIGLF7eW1w6z t6eZT6owAChtrtLuKTBhKv6kIXm/H845KhA5h8kHvu6w7uI735B1O8ycSNo7dBtEIOsL PplA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:ironport-sdr:ironport-sdr; bh=hbW9R+wQeuwKn8Rl5jnrTR/YipHg0MJ2/VrIEUFuv7E=; b=K3Gf0ajIpwpKBSBPrJfX3JuHzfL+dly5SnCZVfEuU0p2/Cick6tZqZ/32RuGLIv5Lo fjal+2RLQY/IP1VYudQP/LYmyI43JSpvSYEw8RTaQPPtBZ+jhYB4mRTUMrV9sGcE8y/P ZdmxHwLSQa4yUbeohxCw6b1F/n5GctfOQwm6ZaYx+ELKWxMr+WKXX5svNBlq/lP9+UBi jABPYwWaZhcWvLp59lA+ZhBhMEf4l1F20yBUHDR+ReARpwRJHHbHgrv9eBVtWxdn/ARv hJaIMDr8Je41spDMSzIll8vYBeIquJvsk5RCncZk1KI49O2KvRkMHVT4eXK7uuJRocb9 UbbA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si5518844ejg.224.2021.03.09.08.10.16; Tue, 09 Mar 2021 08:10:40 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232138AbhCIQJM (ORCPT + 99 others); Tue, 9 Mar 2021 11:09:12 -0500 Received: from mga17.intel.com ([192.55.52.151]:10248 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231976AbhCIQIk (ORCPT ); Tue, 9 Mar 2021 11:08:40 -0500 IronPort-SDR: GW0EPtWTJBPmRBpKJIXo9Gu0lhHO3irB7a8Yw7ZlbgNT5bjosdyIEO7RY4nBykQzYJkIRjGpWA TaNMRqAg5hVA== X-IronPort-AV: E=McAfee;i="6000,8403,9918"; a="168180157" X-IronPort-AV: E=Sophos;i="5.81,234,1610438400"; d="scan'208";a="168180157" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2021 08:08:37 -0800 IronPort-SDR: +i6VdVFC9GL00rPRtx/bSqZoPfXP6nEUAghQhRFtwTYUrFxfvcOMYzi+up9usmYI31CNX1xyJE VmqM3HnIfwRw== X-IronPort-AV: E=Sophos;i="5.81,234,1610438400"; d="scan'208";a="369832696" Received: from sastanle-desk2.amr.corp.intel.com ([10.212.154.75]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2021 08:08:36 -0800 Message-ID: <69475ef69096587be23f632e79efce5711c82cf1.camel@linux.intel.com> Subject: Re: [PATCH] HID: intel_ish-hid: HBM: Use connected standby state bit during suspend/resume From: Srinivas Pandruvada To: "Ye, Xiang" , Jiri Kosina Cc: jic23@kernel.org, linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 09 Mar 2021 08:08:36 -0800 In-Reply-To: <20210309034742.GA18299@host> References: <20210303062825.7724-1-xiang.ye@intel.com> <00ad0906b90a290e9737b7bf7d8c5ab9c6ed61e6.camel@linux.intel.com> <20210309034742.GA18299@host> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-03-09 at 11:47 +0800, Ye, Xiang wrote: > Hi Srinivas, Jiri > > On Mon, Mar 08, 2021 at 08:00:41AM -0800, Srinivas Pandruvada wrote: > > On Mon, 2021-03-08 at 11:26 +0100, Jiri Kosina wrote: > > > On Wed, 3 Mar 2021, Ye Xiang wrote: > > > > > > > ISH firmware uses connected standby state bit > > > > (CONNECTED_STANDBY_STATE_BIT bit 1) > > > > to notify current power state to sensors instead of suspend > > > > state > > > > bit (bit 0). > > > > So send both SUSPEND_STATE_BIT and CONNECTED_STANDBY_STATE_BIT > > > > to > > > > firmware > > > > to be compatible with the previous version. > > > > > > Could you please make the changelog more verbose -- namely what > > > user-visible issue this is fixing? > > Xiang, > > > > I think this change is for related to Elkhart Lake for support of > > connected standby (keep listening for sensor events during Linux > > suspend for some sensors). In this way some sensor can wake up the > > system. > This change is for all ISH platform. Currently, ISH firmware use > both SUSPEND_STATE_BIT and CONNECTED_STANDBY_STATE_BIT to identify > system state. It is related to system wake up by ISH and it enable > each > sensor in ISH to be notified the current system state, when system > state > change. What will sensors do with this additional information? I think the individual sensors in ISH can decide whether to power OFF or ON based on this information to save power during system suspend to idle. Thanks, Srinivas > > Thanks > Ye Xiang > > > > > > > > > > > >