Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4871imm; Tue, 12 Jun 2018 17:15:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJWx8SUUv8qDglAJbnXjZwzYlwLYhxqvYF42n5QP5sp3la2mtYNlhQt9r48TQ5R8fkqfuHW X-Received: by 2002:aa7:83d1:: with SMTP id j17-v6mr2565079pfn.236.1528848953949; Tue, 12 Jun 2018 17:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528848953; cv=none; d=google.com; s=arc-20160816; b=G0X804xJE6ZqWYVSsufVlt5y45rFXF0mXq/mDgeb2zZQHlbjEUy54ik5R2LgV+TCM5 JOUU8yJJoSdjMAm7kD+BU6LVAQkIXeGgl+9anzYZjoT/BDdxQKkN9tqX5s0M6LGzPcsG Q9uakF2d3ODqLIa8W/v0etdVMJcs+Yei0YcgZmHRb2B1tDhU28w9TVsXibmLxhp8g6fP cz+te49Vaz6Kgn3g1KbBhLSgIgULV9b0e5S6EMye9pWqoGylyMWCj49ud1zH02svNBsj 5vaIKRhG8cdWAuq9asBeStFdbzG8I5nEqQmM/PIwKDrfH0H6bk88JNBK1AqbEvffo49u 3QUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=dP06K1dDd4ShLtFK/qPow+LWDow7zKA4bFtN5OrwepU=; b=1ELQyQY4i5QxGlSvu3QAQT5hJdO4vNPrbk9bEZAiwCgWTxhzNJOuWOPM/vv1R+6NPR rQAhfdJ3Hr8ecCEyXZ9n7xG0IwoeI53Z1WbF2uBM9s965b+Mseqme0sfyG2DmJUN4LR1 h1xMttWhN/wBmCOVVHebRANjC1C8SNcpAZZcgrEYaOgpXFq9lLZ6+tjAIAGaLrVwg6BX KGqDQS+xn9sYMfF5muyvO338barFkY8/JxHnVt635QaB9L9eGiM5fSOOjas03zcOhn8B b9hkEDZBp23AdQPUHOgMLmR8pw9yh5ZxRn8zRldnmYrok7ORTKYoZpOUeqGwQIEGv3ER Df9A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d125-v6si1051707pgc.94.2018.06.12.17.15.36; Tue, 12 Jun 2018 17:15:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934878AbeFMAPC (ORCPT + 99 others); Tue, 12 Jun 2018 20:15:02 -0400 Received: from mga18.intel.com ([134.134.136.126]:51421 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933029AbeFMAPB (ORCPT ); Tue, 12 Jun 2018 20:15:01 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jun 2018 17:15:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,216,1526367600"; d="scan'208";a="63575007" Received: from ppenchax-mobl.amr.corp.intel.com ([10.254.98.204]) by fmsmga001.fm.intel.com with ESMTP; 12 Jun 2018 17:15:00 -0700 Message-ID: Subject: Re: [PATCH] hid: intel_ish-hid: ipc: register more pm callbacks to support hibernation From: Srinivas Pandruvada To: "Xu, Even" , Jiri Kosina Cc: "benjamin.tissoires@redhat.com" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Tue, 12 Jun 2018 17:14:59 -0700 In-Reply-To: <9577C59DB499174B9340876B077C2E9569DF11EC@SHSMSX101.ccr.corp.intel.com> References: <20180611015650.51385-1-srinivas.pandruvada@linux.intel.com> <634cd945beca786dc77876f71e39459cef6fbd75.camel@linux.intel.com> <9577C59DB499174B9340876B077C2E9569DF11EC@SHSMSX101.ccr.corp.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.2 (3.28.2-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-06-13 at 00:05 +0000, Xu, Even wrote: > Ok, sure, I will update patch comments and resubmit. Can you also add in the sign-off area Cc: stable@vger.kernel.org Thanks, Srinivas > Thanks Srinivas! > > Best Regards, > Even Xu > > > > -----Original Message----- > From: Srinivas Pandruvada [mailto:srinivas.pandruvada@linux.intel.com > ] > Sent: Tuesday, June 12, 2018 11:31 PM > To: Jiri Kosina ; Xu, Even > Cc: benjamin.tissoires@redhat.com; linux-input@vger.kernel.org; linux > -kernel@vger.kernel.org; Xu, Even > Subject: Re: [PATCH] hid: intel_ish-hid: ipc: register more pm > callbacks to support hibernation > > On Tue, 2018-06-12 at 16:53 +0200, Jiri Kosina wrote: > > On Sun, 10 Jun 2018, Srinivas Pandruvada wrote: > > > > > From: Even Xu > > > > > > Current ish driver only register resume/suspend PM callbacks > > > which > > > don't support hibernation (suspend to disk). Now use the > > > SIMPLE_DEV_PM_OPS() MACRO instead of struct dev_pm_ops directly. > > > The suspend and resume functions will now be used for both > > > suspend > > > to RAM and hibernation. > > > > > > If power management is disable, SIMPLE_DEV_PM_OPS will do > > > nothing, > > > the suspend and resume related functions won't be used, so mark > > > them > > > as __maybe_unused to clarify that this is intended behavior, and > > > remove #ifdefs for power management. > > > > This describes details the patch does on code level, but what are > > the > > user observable effects? Hibernation resume doesn't fail any more? > > Hibernation > > is possible (and wasn't before)? Did kernel crash while trying to > > hibernate and this is the fix? Or ... ? > > Even, > Can you add more details and resubmit ASAP? > > Basically after hiberation, the ISH can't resume properly and user > may not see sensor events (for example: screen rotation may not > work). > User will not see a crash or panic or anything except the following > message in log: > hid-sensor-hub 001F:8086:22D8.0001: timeout waiting for response from > ISHTP device > > So this is adding support for S4/hiberbation to ISH. > > > > Thanks, > Srinivas > > > > > Thanks, > >