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=-11.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 0A7BAC43460 for ; Mon, 17 May 2021 09:46:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DB3D3611EE for ; Mon, 17 May 2021 09:46:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236182AbhEQJrU (ORCPT ); Mon, 17 May 2021 05:47:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:47574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236066AbhEQJrS (ORCPT ); Mon, 17 May 2021 05:47:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F03B461206; Mon, 17 May 2021 09:46:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621244762; bh=lAFa+Si5kWcFvvpJFNzN92TGH41WlcS6wS9EIQsMzEc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k0i7XP6kOh9VnrlSvQ7gi+EQDFpkctkEEepo/8xcH20lARJSk3TyQlqc9AObdickI 5PeM93iSH3W0ZD70AlMuJWuacCRkECB96oWTW9jQio304b+Z3oizlLcoLpIVzHAYB/ kuVO9Eh9kVGtwNiz7RIujetyvyKHzAYPDrm6t/gw= Date: Mon, 17 May 2021 11:46:00 +0200 From: Greg KH To: =?utf-8?B?6ams5by6?= Cc: jikos , "benjamin.tissoires " , linux-usb , linux-input , linux-kernel Subject: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1547909475.114060.1621244274064.JavaMail.xmail@bj-wm-cp-4> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 17, 2021 at 05:37:54PM +0800, 马强 wrote: > > >> This patch enables remote wakeup by default for USB mouse > >> devices. Mouse in general are supposed to be wakeup devices, but > >> the correct place to enable it depends on the device's bus; no single > >> approach will work for all mouse devices. In particular, this > >> covers only USB mouse (and then only those supporting the boot > >> protocol). > >> > >> Signed-off-by: Qiang Ma > > > Based on hardware testing, I do not think we can do this as no other > > operating system does this, right? It's not a requirement of the USB > > specification to support this, so we can not enforce it either. > > > 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? thanks, greg k-h