From patchwork Mon Jul 2 16:26:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nico Sneck X-Patchwork-Id: 10502015 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8764260284 for ; Mon, 2 Jul 2018 16:26:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73C2A28BFF for ; Mon, 2 Jul 2018 16:26:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63E2428C6E; Mon, 2 Jul 2018 16:26:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F016F28BFF for ; Mon, 2 Jul 2018 16:26:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752184AbeGBQ0Q (ORCPT ); Mon, 2 Jul 2018 12:26:16 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:44263 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752150AbeGBQ0P (ORCPT ); Mon, 2 Jul 2018 12:26:15 -0400 Received: by mail-lj1-f195.google.com with SMTP id t22-v6so12982643ljc.11 for ; Mon, 02 Jul 2018 09:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=0dPxE2IwoxGozpO/GUkzG3B8WcAhkarFuQBPizZHtLc=; b=mhjpC/g7SeSTsedX3qlxYkZaek9PIKnMgh/O6m7C4LEfrp2P/gt8lGxVs9S5TashwP 0uWcBV/dTMhWEjmLJkwiyp+hUKtsInWiY6GqdPIdeIxsPi/2tlKDSBgDwb+vJGq9ZehL xR79FB5kK9MU+xbkybODNnCTXFXJHYVR59LruPfX+vXWt97WOyL3TJ34WDjraW7hUjyJ 2NjE4cfWzKu3CSFZKfhjngif+SmbTBJS3s1UxmCJlnbzczx9xMQdARgktMg/eRhCA0wA 5CtXYK/N0HKRPUZ66LhuRGCgYQxID71RizJb/g32brAR0AEmc8gY7eQj1uubXlfCTiJY JPUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=0dPxE2IwoxGozpO/GUkzG3B8WcAhkarFuQBPizZHtLc=; b=a0mpqid8HZ1imb93CNILsq/g2aaCux6SuozOLhRFtTsebsMsCXSagY4vn8FUBHX5PP HUbu+m+8y2t+hMhWoMzTlgPCBF7LfJJVImyBt1k1gkbOV4HVWQ1Hgw/uaKSEu/kQrIJe sj7PV5ANGFzXH5Mlx8ZpFOAgXwVx7ml9KP3dCN18sDXLK/lrriEH9rp3H1572YLYD3Is xBm3QELals4zOGZM9cJggQIVKYGHk/VNGAOImw39ctRy6I5CWOVEKuOQrKN64/u7H3Bt lPbFqxA3yoIsk5/7Y54hG9lxTz06F5iH5qpba/SUI3fsPgw0p5VKRQwicpPBG4lrpaWu XfEg== X-Gm-Message-State: APt69E0dncIqIAJHTo67uXFH/swC86yb6zRcYybf6PPAxZoA5S+06Osb RwhlpHaheHZQCX+c01GHSrnmyQiso++aWA== X-Google-Smtp-Source: AAOMgpfnjCqFO9r6YyBFr5J63KOfMf1xjOOOIlN6iHrIIcZdWTSqrR2X3sW/4Ga2G7qzxVgyOxTePQ== X-Received: by 2002:a2e:9bc9:: with SMTP id w9-v6mr3907707ljj.33.1530548774125; Mon, 02 Jul 2018 09:26:14 -0700 (PDT) Received: from nico-desktop.dna.mokkula (mobile-access-6df0a3-79.dhcp.inet.fi. [109.240.163.79]) by smtp.gmail.com with ESMTPSA id k20-v6sm1540517ljb.47.2018.07.02.09.26.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 09:26:13 -0700 (PDT) From: Nico Sneck To: linux-usb@vger.kernel.org Subject: [PATCH] usb: quirks: add delay quirks for Corsair Strafe Date: Mon, 2 Jul 2018 19:26:07 +0300 Message-Id: <20180702162607.5830-1-snecknico@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Corsair Strafe appears to suffer from the same issues as the Corsair Strafe RGB. Apply the same quirks (control message delay and init delay) that the RGB version has to 1b1c:1b15. With these quirks in place the keyboard works correctly upon booting the system, and no longer requires reattaching the device. Signed-off-by: Nico Sneck --- 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 c55def2f1320..097057d2eacf 100644 --- a/drivers/usb/core/quirks.c +++ b/drivers/usb/core/quirks.c @@ -378,6 +378,10 @@ static const struct usb_device_id usb_quirk_list[] = { /* Corsair K70 RGB */ { USB_DEVICE(0x1b1c, 0x1b13), .driver_info = USB_QUIRK_DELAY_INIT }, + /* Corsair Strafe */ + { USB_DEVICE(0x1b1c, 0x1b15), .driver_info = USB_QUIRK_DELAY_INIT | + USB_QUIRK_DELAY_CTRL_MSG }, + /* Corsair Strafe RGB */ { USB_DEVICE(0x1b1c, 0x1b20), .driver_info = USB_QUIRK_DELAY_INIT | USB_QUIRK_DELAY_CTRL_MSG },