Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751476AbdHGA7d (ORCPT ); Sun, 6 Aug 2017 20:59:33 -0400 Received: from mail-ua0-f170.google.com ([209.85.217.170]:38809 "EHLO mail-ua0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751386AbdHGA7b (ORCPT ); Sun, 6 Aug 2017 20:59:31 -0400 MIME-Version: 1.0 In-Reply-To: References: <1501866006-24811-1-git-send-email-mario.limonciello@dell.com> <11471111.T3jHVeqpMT@aspire.rjw.lan> <20170805205753.GA1277@fury> <1700343.1Fm4iKlbcW@aspire.rjw.lan> <20170806232418.GA29692@fury> From: AceLan Kao Date: Mon, 7 Aug 2017 08:59:30 +0800 Message-ID: Subject: Re: [PATCH] intel-vbtn: match power button on press rather than release To: "Rafael J. Wysocki" Cc: Darren Hart , "Rafael J. Wysocki" , Mario Limonciello , Linux PM , LKML , Platform Driver , Len Brown , Srinivas Pandruvada , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2402 Lines: 56 Looks like I'm one hour late to ack the patch. Thanks any way for the quick response. 2017-08-07 8:38 GMT+08:00 Rafael J. Wysocki : > On Mon, Aug 7, 2017 at 1:24 AM, Darren Hart wrote: >> On Sun, Aug 06, 2017 at 12:20:22AM +0200, Rafael Wysocki wrote: >>> On Saturday, August 5, 2017 10:57:53 PM CEST Darren Hart wrote: >>> > On Sat, Aug 05, 2017 at 01:30:20AM +0200, Rafael Wysocki wrote: >>> > > On Friday, August 4, 2017 7:29:53 PM CEST Darren Hart wrote: >>> > > > On Fri, Aug 04, 2017 at 12:00:06PM -0500, Mario Limonciello wrote: >>> > > > > This fixes a problem where the system gets stuck in a loop >>> > > > > unable to wakeup via power button in s2idle. >>> > > > > >>> > > > > The problem happens because: >>> > > > > - press power button: >>> > > > > - system emits 0xc0 (power press), event ignored >>> > > > > - system emits 0xc1 (power release), event processed, >>> > > > > emited as KEY_POWER >>> > > > > - set wakeup_mode to true >>> > > > > - system goes to s2idle >>> > > > > - press power button >>> > > > > - system emits 0xc0 (power press), wakeup_mode is true, >>> > > > > system wakes >>> > > > > - system emits 0xc1 (power release), event processed, >>> > > > > emited as KEY_POWER >>> > > > > - system goes to s2idle again >>> > > > > >>> > > > > To avoid this situation, process the presses (which matches what >>> > > > > intel-hid does too). >>> > > > > >>> > > > > Verified on an Dell XPS 9365 >>> > > > > >>> > > > > Signed-off-by: Mario Limonciello >>> > > > >>> > > > This looks good to me - responding to the release is non-intuitive IMHO >>> > > > anyway. I'd like to see agreement from AceLan, but this should go into >>> > > > the 4.13 rc cycle (at rc3 currently). >>> > > >>> > > Yes, it should, and I'm not sure if the original author's opinion matters here. >>> > > >>> > > The patch makes sense to everyone involved and fixes an annoying issue, so >>> > > I don't see any real arguments against applying it. >>> > > >>> > > Please feel free to add my ACK to it if that helps. >>> > >>> > I always try to give those in MAINTAINERS a chance to respond, but I will queue >>> > this up to fixes now. >>> >>> Thanks! >> >> Rafael, >> >> Merged to mainline (in case you were waiting on this for the dependent >> patch you mentioned). > > Awesome, thanks!