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 EE313C43461 for ; Mon, 17 May 2021 11:19:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CD31C6044F for ; Mon, 17 May 2021 11:19:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236693AbhEQLU2 (ORCPT ); Mon, 17 May 2021 07:20:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:34588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236528AbhEQLU1 (ORCPT ); Mon, 17 May 2021 07:20:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A9033611CA; Mon, 17 May 2021 11:19:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621250350; bh=0DgojqgUOV8kKtdojQtC3GoH2zxJez/TBhgucSCiSrQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AFozVQlnqNNIZ10tyE79qLmerQziYQ1zI/NJvQSnVEuoliw7AENpF3tRTzmXsYG1e U4wABEEzB9uCo6BhanaRh+0T6VTyKjJUgEz2VUPGozXyTvHNrCxUwFE+ohEBEVLGbU Z+Tf1nwYAItr6P+Ki2OXXvnKKAITKnOX3hvOcNmk= Date: Mon, 17 May 2021 13:19:08 +0200 From: Greg KH To: =?utf-8?B?6ams5by6?= Cc: jikos , "benjamin.tissoires " , linux-usb , linux-input , linux-kernel Subject: Re: 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> <440071991.120491.1621248757251.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: <440071991.120491.1621248757251.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:52:37PM +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? > > At the kernel level, "dev->power.should_wakeup" is the device property > > that should enable the wake-up capability. > Given that you have not tested this change, why should we take this?