From patchwork Sun Sep 10 16:37:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hamza Mahfooz X-Patchwork-Id: 721448 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 DE799EEB57D for ; Sun, 10 Sep 2023 16:48:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233494AbjIJQsa (ORCPT ); Sun, 10 Sep 2023 12:48:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbjIJQsa (ORCPT ); Sun, 10 Sep 2023 12:48:30 -0400 X-Greylist: delayed 574 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 10 Sep 2023 09:48:26 PDT Received: from h8.fbrelay.privateemail.com (h8.fbrelay.privateemail.com [162.0.218.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 495FDCC5; Sun, 10 Sep 2023 09:48:26 -0700 (PDT) Received: from MTA-08-4.privateemail.com (mta-08.privateemail.com [198.54.118.215]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by h7.fbrelay.privateemail.com (Postfix) with ESMTPSA id 3C169604C1; Sun, 10 Sep 2023 12:38:50 -0400 (EDT) Received: from mta-08.privateemail.com (localhost [127.0.0.1]) by mta-08.privateemail.com (Postfix) with ESMTP id 6FF2C1800050; Sun, 10 Sep 2023 12:38:46 -0400 (EDT) Received: from hal-station.. (bras-base-toroon4332w-grc-39-74-12-11-94.dsl.bell.ca [74.12.11.94]) by mta-08.privateemail.com (Postfix) with ESMTPA; Sun, 10 Sep 2023 12:38:31 -0400 (EDT) From: Hamza Mahfooz To: linux-usb@vger.kernel.org Cc: Hamza Mahfooz , stable@vger.kernel.org, Greg Kroah-Hartman , Alan Stern , Benjamin Tissoires , Bastien Nocera , Hans de Goede , =?utf-8?q?=C5=81ukasz_Bartosik?= , Nicolas Dumazet , Jean-Francois Le Fillatre , Mark Pearson , Hannu Hartikainen , linux-kernel@vger.kernel.org Subject: [PATCH] USB: add ignore remote wakeup quirk for one of Logitech's receivers Date: Sun, 10 Sep 2023 12:37:48 -0400 Message-ID: <20230910163751.4210-1-someguy@effective-light.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This device causes the system to wake up from suspend, as soon as it enters it (even if the device attached to the receiver is powered off). So, ignore remote wakeup events from it. Cc: stable@vger.kernel.org Signed-off-by: Hamza Mahfooz --- drivers/usb/core/quirks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c index 15e9bd180a1d..d2e2a2873f34 100644 --- a/drivers/usb/core/quirks.c +++ b/drivers/usb/core/quirks.c @@ -264,6 +264,10 @@ static const struct usb_device_id usb_quirk_list[] = { /* Logitech Harmony 700-series */ { USB_DEVICE(0x046d, 0xc122), .driver_info = USB_QUIRK_DELAY_INIT }, + /* Logitech lightspeed receiver (0xc547) */ + { USB_DEVICE(0x046d, 0xc547), .driver_info = + USB_QUIRK_IGNORE_REMOTE_WAKEUP }, + /* Philips PSC805 audio device */ { USB_DEVICE(0x0471, 0x0155), .driver_info = USB_QUIRK_RESET_RESUME },