From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8693C43460 for ; Mon, 17 May 2021 10:42:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 988AD60FE6 for ; Mon, 17 May 2021 10:42:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236463AbhEQKn1 (ORCPT ); Mon, 17 May 2021 06:43:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:52518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236441AbhEQKnZ (ORCPT ); Mon, 17 May 2021 06:43:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1A0FF61028; Mon, 17 May 2021 10:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621248128; bh=pIR6VuQNypfJQ9IxKiYW045odyC4QjKoJjUL3QZtNTg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yi1X749v2gwM9rrb2WIg9lqiczgnQd+9B8EvjxRi9dVkXOD3Kiwp0dyQUsGmc7Yvb N/9OXw6+VZzTDREMe2p5OHo474MjnQ/R1mC6sPfnICRuE1d/+Y+k+sc9Z7Q0JQWvu3 niR2j41ZsSLgCBZ+3Dy6DqMYEi6ZMsj0okmFNFhc= Date: Mon, 17 May 2021 12:42:06 +0200 From: Greg KH To: =?utf-8?B?6ams5by6?= Cc: jikos , "benjamin.tissoires " , linux-usb , linux-input , linux-kernel Subject: Re: Re: Re: [PATCH] HID: usbhid: enable remote wakeup for mouse Message-ID: References: <20210517060145.32359-1-maqianga@uniontech.com> <1547909475.114060.1621244274064.JavaMail.xmail@bj-wm-cp-4> <1781917892.119659.1621247946603.JavaMail.xmail@bj-wm-cp-4> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1781917892.119659.1621247946603.JavaMail.xmail@bj-wm-cp-4> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 17, 2021 at 06:39:06PM +0800, 马强 wrote: > > > > > > > > Thanks for the prompt response. > > > > > > We can change "dev->power.should_wakeup" to enabled, > > > > I do not understand this statement. > > > > > but ultimately it depends on the hardware and BIOS for wakeup. > > > > Yes, and the hardware here (USB mice), do not all support this, so you > > can not enable it universally as it will cause problems, right? > > I mean, the kernel should set should_wakeup to enabled > > so that system can be awakened when the hardware here(USB mice) supports the > wake-up ability. And how do you determine, in the kernel, if the mouse can do that? What range of hardware did you test this change with? thanks, greg k-h