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 23F13C636D6 for ; Thu, 23 Feb 2023 11:41:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233598AbjBWLlb (ORCPT ); Thu, 23 Feb 2023 06:41:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233248AbjBWLlP (ORCPT ); Thu, 23 Feb 2023 06:41:15 -0500 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0629.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 224AB51F85; Thu, 23 Feb 2023 03:41:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PLnNiH+Cholhy5vjVV2btJqctsv4y9pD3tHoXVdjBXxyikx63StlXm1YnvP9EcpZI5YKe0aYpfj9Kz2qN3cjBZ74XeqBJiSdBP6ix3qYlnrlq4QHBVdLvUncR4cEia43A/dBxgkSUHaFZkx6xMAvyigVOO2/uNma/7Kd8pkyCjmg5NF96DKIJ3ZxT6btpMlTmLr1cLDR9yqVoqezQ5wiTs/NKzoiiHpNoqoMGVdW+XejdxWJ+OufL8jH3rwGXQolX0tYTH3H1xPNgAqrrHSTLalcubYk4jFbz6/Ic5oWqSYWt3b7Q4Woy69YtaNJ2TS1UbazHvdtbSzOTPmlJUlpXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cMdAu4aEFI5dsdeoi+lmLcRZBukYPkLl/dCQYyPbr+I=; b=Q73b85xCRoDhLi4cB9dOhJxUWhiCzESWOyy6gebS3lLY3T3YCviviUhlqMQto+AZIP58ZBiudiidIpmWCLCyZTbGXw33o0/FHvzDQvcLsdKKrU4v5iRbjCHJkJMHWYTPYeqDag2IiPwXTN29/mxxsbN7VNUDDvopt0K6umu9Otp68kKxujFc7ABx8jfJVuCRC3kKvaWtBdaYAgz6xeMTeHC9yqVNlZaNquc4oI/2G317xYSrB5cLU/Uugyc12GgjNEybLwtINyDU8AcEns3iM4L9F5xBQ2ng9gLWx1XY4hG3l3hFbzIiRjlPzQt4OSkKnGzcjTugFdlR39TXjxcW5Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cMdAu4aEFI5dsdeoi+lmLcRZBukYPkLl/dCQYyPbr+I=; b=aXLurlsfI+zN4T4H4yZ5zVPQ2uOEjFs0SG+431Xj7dh7PktLqkRaLB9TJw/wdcTb6x7BfAIeknuzmWEHg/WNK+FGGwLUhAO7gjustfr4HNumuUHFtdyr6kMB+F+xDn/XXaosXDdI68q8BAQ9YwDwttlCgy5b9qbwjGsvs8gcp565DIsYWwGpDh5WGGgqfSQ2KC5UCoWcqB8vVkLIRg5RlMTnAdwUV80RwEyZGXFS0LJwiP5iZNuzfF/j9pJfvWlvfzH/67dCEnzAeTqRBrCrY/KUcwbaugee9NV2CGadxDrcQSlpobvBAOxRYe9p6IjW93hKEHdIyGbYD5BSm/FwZg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VI1PR04MB7104.eurprd04.prod.outlook.com (2603:10a6:800:126::9) by PA4PR04MB8014.eurprd04.prod.outlook.com (2603:10a6:102:c7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21; Thu, 23 Feb 2023 11:41:08 +0000 Received: from VI1PR04MB7104.eurprd04.prod.outlook.com ([fe80::2191:53f7:4a90:c7cc]) by VI1PR04MB7104.eurprd04.prod.outlook.com ([fe80::2191:53f7:4a90:c7cc%7]) with mapi id 15.20.6134.018; Thu, 23 Feb 2023 11:41:08 +0000 Message-ID: <07d02f6c-be4b-42b0-9edf-6f691571c5e9@suse.com> Date: Thu, 23 Feb 2023 12:41:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] HID: usbhid: enable remote wakeup for mice To: "Limonciello, Mario" , Greg KH , Michael Wu , Richard Gong Cc: jikos@kernel.org, benjamin.tissoires@redhat.com, linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230222013944.31095-1-michael@allwinnertech.com> Content-Language: en-US From: Oliver Neukum In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR2P281CA0030.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:14::17) To VI1PR04MB7104.eurprd04.prod.outlook.com (2603:10a6:800:126::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR04MB7104:EE_|PA4PR04MB8014:EE_ X-MS-Office365-Filtering-Correlation-Id: acdc9566-7e85-424a-f04d-08db1592da9d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A9sWOEGQ6kyDRVp8aNIxB31nc/STFfKgtDYLPk6OEPo3dPNa2+BLjzigMdnLElI8XKmAgfiRfoWh8Q6Ubvfl7N2m+n5sRwzBXjVTIvT6+4eKO9RkddcsAFVS+EYGBMiwDQkG5EZDr528+IU8+TcWfBDc+BejmkbRy1hnb73abvzq/L0kdkpeDm2jCzsVz8BiuocklHdEcL/lahaQcLWtQxM7Qk81I2TP5kFtIWFgzprWJdBTxTtydbmxYqiNagll+YUWgrVYZxks+qKkMfDvmTdrV4W5890/kyZ48FNvmrhnypDX59OBDv0yaPYo0eD74zpGbv3I29eM6rVViJzgKV0v3Z36WScyaRpcT+dUUShKLrxy9mudVFNx/lDQo6Mm0KIBnsXGsxgVpyFQg8jaAgyH0AkX/Q4CQLKUewnlyWk9GazqJY/a54imQWN7K68wKffU7o0236xgBmNfSW5VOc4PeUKSYdyw/fT+70bXkMA03WWEkCO5SyhKrIjzTPzu1aZdgQMeoiOsFVnUUe3jjrg6AS9pbbWa+gTu2ZaUMgmvTYln7ZkYX3eizX9HfKDfMSOU3ACfej1qJMbjUOImyZwhIokkIFbbQvEi9mZ5LqF0O5x2K2nEaN2HjIlTqm3CX0/KWVbO8AX7VStwvu8qZBfcdIY4zJZfczcvG3oJ8lGtRFQk7Rmgj3dzZ0pfG/d9fGj7Mi8w/QuvktY4dT7wWw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB7104.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(39860400002)(396003)(366004)(346002)(376002)(136003)(451199018)(186003)(6512007)(53546011)(2616005)(478600001)(6486002)(966005)(8676002)(316002)(4326008)(83380400001)(110136005)(6506007)(31686004)(66556008)(66946007)(66476007)(8936002)(41300700001)(5660300002)(2906002)(38100700002)(86362001)(36756003)(31696002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VVB1WWlpLytNZUhNWjVMekxpc2VHUyt1R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8?B?WllXVFBHSjByTHRtb2JLRHV6aGpRZWV5N29WL1NBWGlxSHNtZlpsTUFCVTBk?= =?utf-8?B?dWppRUhUMU5jL3NBTEw0ZG1nb3RoOENWYjZPM256SU4zUWkvN2QwaFZsRm5i?= =?utf-8?B?N3g1YzFneVdQYTh3d3l2dit2YVY4aVJEeHRmMmtiS2luc1AyV1pEYXRPTUJo?= =?utf-8?B?aTh5VUhYY2QrdUpCYmUrM3ZNQmtVYTFmT2ZGV2xFOFQ5MXRXSE9uTVBrSVlY?= =?utf-8?B?K2VBQjhHOVBhNytwSXM0ZFBBZUltRUlMMllhVWpGN1BDWEJEeFgzb0dGaVRq?= =?utf-8?B?NGlxSVVsbldWVFV5ZGNmOVNleEduUmEyS1R5WmNvdnZFbFlBMWVqUjhXNFdl?= =?utf-8?Q?EZcYFQNDZB+uRDznoHw/FBahoTeyxMyTg80KQ2qMoGaK?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: acdc9566-7e85-424a-f04d-08db1592da9d X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB7104.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2023 11:41:08.1967 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Aw6+pnydLwEQyRTpY+zHH/l9kE0blqvUlsSmecNHqfSElxC1ZF3ihD7GtGZKQwfO3mYdGLHo889/EimWmGYY3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB8014 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.02.23 20:50, Limonciello, Mario wrote: > Richard and I both sent out relatively similar patches in the past, but they never went anywhere. The problem here is that the default will never satisfy a great majority. just a majority. So if we admit that there is no optimal solution, why not pick the tested, that is, current solution, as long as it does least? > We did confirm that Windows does set a similar policy as well though, which is what prompted us to attempt this. > > As there is more interest again maybe we can revive that discussion and merge together some ideas from the sets of patches. Well, the most obvious question, as this can also be done with a udev rule, is, what are the risks of a change? > Previous submissions: > > v4: > https://lore.kernel.org/linux-usb/20220825045517.16791-1-mario.limonciello@amd.com/ This one at least restricts it to some cases. And as much as it pains me, we need to ask whether there are risks in not emulating Windows. And on the other hand, what happens if we do this. Are you sure, for example, that you do not break use cases for S4 with this change? If a laptop goes into S4 because power is too low, we really do not want it to wake up just because somebody accidentally hits a mouse button. Regards Oliver