Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp295038lqb; Thu, 23 May 2024 20:15:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxnMJ9yJjfH9JR5IgzXxbkhGnqDhbJVCTPW5GrpTDsVYzU5+tZOkyk8QyoAkaBOUgjhgh0nDrV0hXftamS7U2+D9xvrBM1lTqYDIgQgQ== X-Google-Smtp-Source: AGHT+IHh4w0a82L9v/U/E039ObeRgJFPks+5w91IA/Cv0Ia6TeirwWOvxT8K6qNU7wJ7GPf0eLcy X-Received: by 2002:a05:6808:221c:b0:3ca:b4cd:67d2 with SMTP id 5614622812f47-3d1a50a8f6emr1752245b6e.7.1716520542924; Thu, 23 May 2024 20:15:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716520542; cv=pass; d=google.com; s=arc-20160816; b=Vx1jfBQV6EDjQ2R++HwWD3SxhP1ohPbtI0J56B2wm89Ur+ivaw/HwLADFshai2JD83 R7Vt0tDG3b90RH3p11bUdf+uVKr6qJNOtPS40n+k4JOaDiUiEF+iZpEDfVbHAQ3AtBe2 7YXk7OvaJDsuP7BdtF+Vs/WGxJNIsllaKj+xzu90HTxtZedKdJm3Azu4r2IRmX/QkuK9 S9i9KL/SL2/pynOlPgJFSSzDRKd2mpMGWQppLVgbTBt/nuxZzO6PlhhJopdIfXDHrMtS EAj8O38UQNE4N3u+XODzhLozIhyXrjRTQ+HsNUx7tc1FNLtYuS0vwptnOdvAshjuBvpX CFMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=M0REdcJESOdI2zljW5iAkli8/MpFChjhCrUTmmi62x4=; fh=dvaUh6IRmMJYaxkKrW5R+o3SLYuPvgr8KgcZtLvkVH4=; b=zQUAnYZZDHF3gDaMvw077Rxv3D60kJP8zb8J8wb7sNnmOOwZLsK1Nfh9lUs+myFzk5 PpGQKea8PpvD/Ojgvml4GRFsOFv2OsOp2bhPijfbGfmIh9SylwzZUdbzo6xpLwzhKWEZ G6RWucsVHZbGGXs9WJTNckcyjvinfe7JCC3XnvUMRvszoBvMaK8K9pfauOqELOzLgPlZ tZCmJYEGOPsoRjQT/mzoVbAefnHfYdBACMNEIRjXpsMa+Liy1/LDZsXleRsvpCUdgbiI /rAZFU1DVpQRmWSsouz2py/8Db81MAnQH5cCjonnYNwaLcizFVBQJS6OblEVU1x7tclA v9mg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Oo2uUXmX; arc=pass (i=1 spf=pass spfdomain=163.com dkim=pass dkdomain=163.com dmarc=pass fromdomain=163.com); spf=pass (google.com: domain of linux-kernel+bounces-188247-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188247-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abd4b98esi65056285a.553.2024.05.23.20.15.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 20:15:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188247-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Oo2uUXmX; arc=pass (i=1 spf=pass spfdomain=163.com dkim=pass dkdomain=163.com dmarc=pass fromdomain=163.com); spf=pass (google.com: domain of linux-kernel+bounces-188247-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188247-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A33471C2185D for ; Fri, 24 May 2024 03:15:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79E921DDEE; Fri, 24 May 2024 03:15:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="Oo2uUXmX" Received: from m16.mail.163.com (m16.mail.163.com [220.197.31.4]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3F151FC4; Fri, 24 May 2024 03:15:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716520532; cv=none; b=LmvG81NBGp4dOglTcLI2HCELdESI6xY1lE1wWcTrox/2+i6vJwpbmFAu97TM67NH0CZvvZ8Q4aPAQTqFBY0p/uJ0DG/0SJvmOEmADDDs1lgtAP4W03X3R5NEj5O9LyWAf8eyVzNlNDMZx19zCeNlXX522/GL60yltHoXr+9dnk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716520532; c=relaxed/simple; bh=M0REdcJESOdI2zljW5iAkli8/MpFChjhCrUTmmi62x4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hTlKs3N9CmQq2T+I7LTDkUYAHtugj88U8Fxt+3ssvWt++mUXmx5GxbZ9GeLu/QM4ICifiCfiLXsH7UuslmKWs0P8iGogczT9QRJqeiMEu0puS5b6YtYjzdQOHaJxX0gqFSA1ZamxttEh1a0pS3L0DZc8OUQmhPudQAHFZKHU8ME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=Oo2uUXmX; arc=none smtp.client-ip=220.197.31.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Message-ID:Date:MIME-Version:Subject:From: Content-Type; bh=M0REdcJESOdI2zljW5iAkli8/MpFChjhCrUTmmi62x4=; b=Oo2uUXmXZgIIFfNSRpkP8IQ3zcRL42ooT0lDz5rym+iw35r9xBGR/XvjFFfnjw StgBjm+NoBr3DoPWIU8Fw027RZFrHIUlQ3ZBgvu49UA4mT3ktosm1jbWuezdyeO7 S6/VZEpTmH1VloGvbMwBSgMIowKU+f+9EPYyfKN5k5t6E= Received: from [10.42.116.195] (unknown [111.48.58.10]) by gzga-smtp-mta-g1-1 (Coremail) with SMTP id _____wDnd2MWBlBmnhqhFg--.1290S2; Fri, 24 May 2024 11:14:31 +0800 (CST) Message-ID: <6ce4c794-46c6-1485-2918-aae82b92a9e3@163.com> Date: Fri, 24 May 2024 11:14:30 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] HID: usbhid: enable remote wakeup for mouse Content-Language: en-US To: Oliver Neukum , jikos@kernel.org, bentiss@kernel.org Cc: linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, huanglei References: <20240522092257.19373-1-huanglei814@163.com> <9d37e0b4-91fa-4239-b767-2eb17e78ea84@suse.com> From: huanglei In-Reply-To: <9d37e0b4-91fa-4239-b767-2eb17e78ea84@suse.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID:_____wDnd2MWBlBmnhqhFg--.1290S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrZw1kGr18tFWDGryxXryfCrg_yoWxZFcEkF sIv395u345Wwn7J3W3tFW7GFW3Ww1j9ryxJa18JFn7XryfZrs5Xr4DXw1qqa13ta9avr9F gr1S9rs8tryj9jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjt8n7UUUUU== X-CM-SenderInfo: xkxd0wxohlmiqu6rljoofrz/1tbisBjo9mV4JjF4kwAAsX Just wanted to support mouse  wake up. Set it in userspace will be a better choice, Now,canceled the patch. 在 2024/5/22 18:00, Oliver Neukum 写道: > On 22.05.24 11:22, huanglei814 wrote: >> From: huanglei >> >> This patch enables remote wakeup by default for USB mouse >> devices.  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). > > Hi, > > could you explain in the log why you want this to depend > on support for the boot protocol? > >     Regards >         Oliver