Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2DA7CC433F5 for ; Fri, 10 Dec 2021 09:54:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239704AbhLJJ6W (ORCPT ); Fri, 10 Dec 2021 04:58:22 -0500 Received: from mail.loongson.cn ([114.242.206.163]:48058 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239671AbhLJJ6V (ORCPT ); Fri, 10 Dec 2021 04:58:21 -0500 Received: from [10.180.13.84] (unknown [10.180.13.84]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxH8vaI7Nh4tIFAA--.12801S2; Fri, 10 Dec 2021 17:54:35 +0800 (CST) Subject: Re: [PATCH v1 1/2] HID: usbhid: enable remote wakeup function for usbhid device To: Greg Kroah-Hartman Cc: Jiri Kosina , benjamin.tissoires@redhat.com, gregkh@linuxfoundation.org, Thinh.Nguyen@synopsys.com, mathias.nyman@linux.intel.com, stern@rowland.harvard.edu, rajatja@google.com, chris.chiu@canonical.com, linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, zhuyinbo@loongson.cn, Thinh Nguyen , Mathias Nyman , Alan Stern , Rajat Jain , Chris Chiu , linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <1638956391-20149-1-git-send-email-zhuyinbo@loongson.cn> From: zhuyinbo Message-ID: Date: Fri, 10 Dec 2021 17:54:33 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=gbk; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf9DxH8vaI7Nh4tIFAA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eHDUUUU X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2021/12/8 ????7:55, Greg Kroah-Hartman ะด??: > On Wed, Dec 08, 2021 at 05:39:50PM +0800, Yinbo Zhu wrote: >> The remote wake-up function is a regular function on usb hid device >> and I think keeping it enabled by default will make usb application >> more convenient. This patch is to enable remote wakeup function for >> usb hid device. > > How many devices did you test this on? > > As Oliver said, this will cause problems, there's a reason no operating > system does this :( > > sorry, > > greg k-h Hi greg, About that oliver said that I had expained, and I add this change was according that usb device whether support remote wakeup and if it support wakeup then to enabled it so I think it should be okay for all hid device. BRs, Yinbo. >