Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02A3FC433FE for ; Fri, 10 Dec 2021 09:50:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239557AbhLJJyA (ORCPT ); Fri, 10 Dec 2021 04:54:00 -0500 Received: from mail.loongson.cn ([114.242.206.163]:46654 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230296AbhLJJx7 (ORCPT ); Fri, 10 Dec 2021 04:53:59 -0500 Received: from [10.180.13.84] (unknown [10.180.13.84]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxysjRIrNhgdIFAA--.12755S2; Fri, 10 Dec 2021 17:50:10 +0800 (CST) Subject: Re: [PATCH v1 1/2] HID: usbhid: enable remote wakeup function for usbhid device To: Oliver Neukum , Jiri Kosina , benjamin.tissoires@redhat.com, gregkh@linuxfoundation.org, Thinh.Nguyen@synopsys.com, mathias.nyman@linux.intel.com, stern@rowland.harvard.edu, rajatja@google.com, chris.chiu@canonical.com, linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, zhuyinbo@loongson.cn, Greg Kroah-Hartman , Thinh Nguyen , Mathias Nyman , Alan Stern , Rajat Jain , Chris Chiu , linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <1638956391-20149-1-git-send-email-zhuyinbo@loongson.cn> From: zhuyinbo Message-ID: Date: Fri, 10 Dec 2021 17:50:08 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9AxysjRIrNhgdIFAA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x0JUQvtAUUUUU= X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/12/8 下午6:03, Oliver Neukum 写道: > > On 08.12.21 10:39, Yinbo Zhu wrote: >> The remote wake-up function is a regular function on usb hid device >> and I think keeping it enabled by default will make usb application >> more convenient. This patch is to enable remote wakeup function for >> usb hid device. >> > Hi, > > I am afraid we cannot do this. It will cause regression. > Consider for example the case of laptops with touchscreens > that will trigger a wake up when the laptop is closed. > >     Regards > >         Oliver Hi oliver, system ask that must it must be accped a acpi lid open event then system will always into resume state for laptop, otherwise, eventhough that system be wakeuped by other event then system will continue into suspend. and for laptop usb wakeup that as general ask bios to enable usb wakeup then if need do more things to enable usb wakeup I think this usb wakeup function isn't friendly and inconveient, so enable it by default. after add this patch, if want to use usb wakeup function it only need enable bios configure it think it is appropriate. BRs, Yinbo. >