Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2619576ybl; Mon, 19 Aug 2019 05:07:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjem/U0phLrkwYDSXTh0OFUtjSbc7BywBIwadvBQs48AgPXgaRGfE9O/5SmIJTlTPtNA9d X-Received: by 2002:a17:902:7448:: with SMTP id e8mr22151939plt.85.1566216477456; Mon, 19 Aug 2019 05:07:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566216477; cv=none; d=google.com; s=arc-20160816; b=NI+zmfSPH1zIurSwMiSXAdMJ0sE9f2fgJWjQ5vGgSus8WrnlkKOcGdgif3YJrmb0ob sT5y8jAJdTCWQbq8x1dbc95XjiW5Alwqu+M+oL2FnYdoaL7QwKUhxHqDCX5POYDPG03q eKE2KJ45/0jcknQlmCgChMMJqyTePMaf79EM59CGkbQZ39mi2FK/jd4+J9cATzUJ8VJY AmpYpyWDLw1gQ2Bn7ztRPfnNEiioXc1SP/AeULZfyvDFL/STgCj9HNj7eX6CHMFdIf2g Xc3A+Yv5hBY+DB8mQhtLl8yhjAtOzby0v252ZTabPUmCfEXiGWb9KTM85iNV/a95Es8c Lx5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=dAwGeE5NyIxCcrICcJjQ7GP/ystz2h/G6wCGpgEITIA=; b=mbFMX0wj3YK7f1X3FKOD/PobSyxNhDwOdeFECGxp0uVETtku5zGcnis+OetyKjgjwK ZW2A9/16XjFL4N9CuvYA6uBO3zKkB0YGokScksFyh1CO/HlHfKYJ280ZlTguSAAUyX47 ubs6WExo0ekrz/WBip0oaSR0knYaDRY8t+hp36u5jIShSQpunYUbZ2cDHVgMFDbQVDoR FYRTu+rgLGI4Qq4x4L8K9wsrSVwaU6fJjoN/b7EoA7NiAIbfoKWvOuRXyz101JhB5wVr UyCqs4xQCGsjTLFKKBVvKJdc98jFO5V7bs0K1ofU+XR953GkcxUfIjl9N2L7wXtQ6USg ak9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nsH6jx9v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x16si9663269plr.214.2019.08.19.05.07.41; Mon, 19 Aug 2019 05:07:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nsH6jx9v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727128AbfHSMGr (ORCPT + 99 others); Mon, 19 Aug 2019 08:06:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:46560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbfHSMGr (ORCPT ); Mon, 19 Aug 2019 08:06:47 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B8E452085A; Mon, 19 Aug 2019 12:06:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566216406; bh=n6lQ+lfW9tVYMdnFOWqkZvUfLjEDOHodohIWRDFkVfU=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=nsH6jx9vYorr0bZVMf/IZKDn7xobb5cd6jGG8Sq+5LOIodbtjM1glja6VlPJ/KOgg HvD/8lKYMzGio4I0jRpBVMG3AZoK0N8HWFZeAFNNNQvio7daa5n5qAkKq+QXXrD0hz MK+Vum//gVxFfYaKm1fdOtq+TKbYCQ51PFK9Nm4k= Date: Mon, 19 Aug 2019 14:06:37 +0200 (CEST) From: Jiri Kosina To: Zhang Lixu cc: linux-input@vger.kernel.org, benjamin.tissoires@redhat.com, srinivas.pandruvada@linux.intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/3] HID: intel-ish-hid: support s2idle and s3 in ish_suspend() In-Reply-To: <20190808102113.27802-1-lixu.zhang@intel.com> Message-ID: References: <20190808102113.27802-1-lixu.zhang@intel.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Aug 2019, Zhang Lixu wrote: > Currently, the NO_D3 flag is set in ish_probe(), the intel-ish-ipc driver > puts the ISH into D0i3 when system enter both suspend-to-idle(S0ix) and > suspend-to-mem(S3). These patches are to put the ISH into D3 when system > enter S3 and put the ISH into D0i3 when system enter S0ix. > > I tested these patches on the following platforms: > ISH 5.2: ICL > ISH 5.0: CNL CFL WHL CML > ISH 4.0: GLK > ISH 3.0: KBL > > Test steps: > * Run the IIO Sensor tool to read the accel_3d sensor data > * Run cmd "echo mem > /sys/power/state" to suspend-to-mem > * Press the keyboard to wake up OS. > * Check if the tool can get the sensor data after OS resume. > * Run cmd "echo freeze > /sys/power/state" to suspend-to-idle > * Press the keyboard to wake up OS. > * Check if the tool can get the sensor data after OS resume. > > Test results: > The tool can get the accel_3d sensor data after resuming from both > suspend-to-mem and suspend-to-idle. > > Changes from v1: > * Fix the indentation issue > * Elaborate the reason to remove the NO_D3 flag > * Split the PATCH v1 to three changes, and try to minimize the lines change Applied to for-5.4/ish. Thanks, -- Jiri Kosina SUSE Labs