Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751912AbdHAL4j (ORCPT ); Tue, 1 Aug 2017 07:56:39 -0400 Received: from mail-io0-f175.google.com ([209.85.223.175]:37736 "EHLO mail-io0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751166AbdHAL4h (ORCPT ); Tue, 1 Aug 2017 07:56:37 -0400 MIME-Version: 1.0 In-Reply-To: References: <7313224.XbtxUoJtXM@aspire.rjw.lan> <3172146.dPhkKZoKtx@aspire.rjw.lan> From: "Rafael J. Wysocki" Date: Tue, 1 Aug 2017 13:56:35 +0200 X-Google-Sender-Auth: nPVd0yX5maP0Za2Kf4lYbI5taxQ Message-ID: Subject: Re: [PATCH] platform/x86: intel-hid: Wake up Dell Latitude 7275 from suspend-to-idle To: Andy Shevchenko Cc: "Rafael J. Wysocki" , Platform Driver , Darren Hart , LKML , Linux ACPI , Andy Shevchenko , =?UTF-8?B?SsOpcsO0bWUgZGUgQnJldGFnbmU=?= , Mario Limonciello , Alex Hung 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-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v71BukSL026530 Content-Length: 1854 Lines: 44 On Tue, Aug 1, 2017 at 1:21 AM, Andy Shevchenko wrote: > On Tue, Aug 1, 2017 at 12:46 AM, Rafael J. Wysocki wrote: >> On Friday, July 28, 2017 02:06:36 AM Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> On Dell Latitude 7275 the 5-button array is not exposed in the >>> ACPI tables, but still notifies are sent to the Intel HID device >>> object (device ID INT33D5) in response to power button actions while >>> suspended to idle. However, they are currently ignored as the >>> intel-hid driver is not prepared to take care of them. >>> >>> As a result, power button wakeup from suspend-to-idle doesn't work >>> on this platform, but suspend-to-idle is the only reliable suspend >>> variant on it (the S3 implementation in the platform firmware turns >>> out to be broken), so it would be good to handle it properly. >>> >>> For this reason, add an upfront check against the power button press >>> event (0xCE) to notify_handler() in the wakeup mode which allows it >>> to catch the power button wakeup notification on the affected >>> platform (even though priv->array is NULL on it) and should not >>> change the behavior on platforms with priv->array present (because >>> priv->array contains the event in question in those cases). >>> >>> Link: https://bugzilla.kernel.org/show_bug.cgi?id=196115 >>> Tested-by: Jérôme de Bretagne >>> Signed-off-by: Rafael J. Wysocki >> >> Please note that this change is requisite for >> >> https://patchwork.kernel.org/patch/9873159/ >> >> so are there any objections or concerns? > > Not from my side, > > Acked-by: Andy Shevchenko OK, thanks! I'm going to route it through the PM tree then if that's not a problem. Thanks, Rafael