Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp272489lqp; Wed, 22 May 2024 04:23:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUulomiQGcuZcHuh7MZ/t/8bfBdsPlmR3iHHAziToUnZrLCsgczBvKvWmMW4TB/ozAtWcuLM+ynmQUrnOPBbo7Ivt2M+a4WJM7B02zxiA== X-Google-Smtp-Source: AGHT+IFbKrxRyHbBEdzTkSEixWT0rVUY9MXcuaT0hiiZwQ/7Hs3uOkIEnY5C8PSdfmMmbts9khQ0 X-Received: by 2002:a05:6a20:8426:b0:1aa:a6cc:39c5 with SMTP id adf61e73a8af0-1b1f872ea18mr2841315637.7.1716377038553; Wed, 22 May 2024 04:23:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716377038; cv=pass; d=google.com; s=arc-20160816; b=iRrRv6JIPwMPtNYAE8JJkXQ4s+T1QZGMgkd2XauehwzqoL0T2UDrcNxJ4Pe5BBBD4w zEzvJ7TyZvMQxT5VE03ZVeEazb2+ZtD8cqjihnOORCiOdTxJ951rqlQdk0jS55Q73UG5 hxiFgHgqR/VjFnYwWhRPuHIu8GcIqNATXK8HOv8CeMVmidhC/SFYu4mfs2gXTMRlz5WS pxMCrBTeUJw0tw1syfGAzy5EaCVJixpziWAIESzYi2p2wjvQVa6oKMWr3dzSiICWGLHq KzZEvWOibbrhZsnE3BT+cvMy+mKB8DC5VxsCUiUC/ZZl5pn9xay5ivKBOexTfZU7Ug57 uP2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=W/nGIkKG8zcHlAC3QOL+2+hPv1MadzdwoAGmThg0VBs=; fh=txMEk2WL5ns/1UlGnldD63o9I36kIJBVwgZB+hLf2zY=; b=GL2hbNoJswPOWj32lKtdIZ7KQv7ID2abm+jvWoaLCrUHqbD941+mBFNCIY/5Wog1IY Jyup9n+zApob72Ufj8FykNJeJCr8TK8ZApj3HOJHCFqQ0E42GUJe+kiAGly+KA0n9joA B742IouL3m/ARASc4hNPX8Zh7ShAFQg4GhAtF0GgBZ9RGuJwpLULhOKt7CNPWWhk8HEX q6X7pz0CR0B3mTRfqVHrniv3OeF97I9RWVAGDkvw4dHWOrIhn2Mg9s319MznZcquDRnd auPcTpF+ClvSucuXyRv9stt+MFKF1P5BV1GUqqURdUJ4EAu1MDNXjhodtLW1XYaRlLM6 OQEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uCIqXTdV; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-186132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186132-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6340b864646si25109421a12.202.2024.05.22.04.23.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 04:23:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uCIqXTdV; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-186132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186132-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 53EAC2815F1 for ; Wed, 22 May 2024 11:23:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB03D82877; Wed, 22 May 2024 11:23:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="uCIqXTdV" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3B0A7BB17; Wed, 22 May 2024 11:23:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716377029; cv=none; b=sqSf5GfgjS6rJf3iHxlujFllDuihULtCJJ1UDG1OcV1RJCqWKMT4ELaguYbspD20l16pszIqxk8C1q/wKdDssiuTmzpRpX1ThYqEX/05nMNQ4MBdY6g3eRcR+QrGDUBnrD+oOrd60Uh7tYDWeCvdcaUOuBpX76YRsHSckqxDzZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716377029; c=relaxed/simple; bh=CRdZCQwoGH/pqe+Cxhhg1rMngUYEDh2pXlpIhUBiTL4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=siI66mzcgouqotRaq3C/nCif+qQnRd+uNbSldK4e2+1UkADzUawy3glmcR4topQ2Blkwidc64UPttQTbr3WWnHE0W5CqcQuxKvdC0Ns9YhnLKOuSBpBdUEYjQwF36waV6/6R9HCrU9qJh07Qnmd4EC9JyA0GaX6QaY5E4Oklxyg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uCIqXTdV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D552C2BD11; Wed, 22 May 2024 11:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716377028; bh=CRdZCQwoGH/pqe+Cxhhg1rMngUYEDh2pXlpIhUBiTL4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uCIqXTdV4b0E7H2AbTwwVeX1itow6zbIPh8ZEwt0ZFKyAaDDAlLLwsu+d8wes4qg5 Nh5Ac8iAYdAu+NaNLqrDgscOSDa5bKS3dkILdSLJPruebICkpCf2/z9OuTED1ltYJ4 zzW+XHrwJI6Gh0xMPrPPyZmMTd8Nse03cNIB63s0= Date: Wed, 22 May 2024 13:23:45 +0200 From: Greg KH To: huanglei814 Cc: jikos@kernel.org, bentiss@kernel.org, linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, huanglei Subject: Re: [PATCH] HID: usbhid: enable remote wakeup for mouse Message-ID: <2024052218-hull-urology-9ec9@gregkh> References: <20240522092257.19373-1-huanglei814@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240522092257.19373-1-huanglei814@163.com> On Wed, May 22, 2024 at 05:22:57PM +0800, huanglei814 wrote: > From: huanglei > > This patch enables remote wakeup by default for USB mouse > devices. That is not a good idea. Please see the mailing list archives for the past 20+ years for why this is the way it is. If you know your device can support this, please set it in userspace, but we can not change the default value at this point in time, sorry. > Mouse can used 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). And that is really not a wise choice, boot protocol mice have no requirement that they support remote wakeup. So restricting it like this really will not help, sorry. Again, do this in userspace, that's why the interface is there to do so. greg k-h