From patchwork Tue Aug 16 10:05:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremiah Matthey X-Patchwork-Id: 1070882 X-Patchwork-Delegate: jikos@jikos.cz Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7GA6U4v012453 for ; Tue, 16 Aug 2011 10:06:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752016Ab1HPKG2 (ORCPT ); Tue, 16 Aug 2011 06:06:28 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:57563 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751711Ab1HPKG1 (ORCPT ); Tue, 16 Aug 2011 06:06:27 -0400 Received: by wyg24 with SMTP id 24so4074672wyg.19 for ; Tue, 16 Aug 2011 03:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=pUuRAKFXTOzfL8gtYUjELKqckINACq9YL2+QyKfek20=; b=lKD251980QENCV0r4tJoBp5ejy+q7aTNdrg79ciY0OejUWxbHaSuz+PpGb3p/RnKJP hrgzgpywefDJj13aUrmVR52BEXLpMRFT0dOVfRdfOk20gewB5/mkRQAbqqRo7TatYjVy V+tKTaDo7HnlxpKjtCxZvMrEWMha9EqDJEZw4= Received: by 10.216.5.209 with SMTP id 59mr3149931wel.66.1313489186281; Tue, 16 Aug 2011 03:06:26 -0700 (PDT) Received: from localhost (solar.elec.gla.ac.uk [130.209.178.117]) by mx.google.com with ESMTPS id et16sm5259681wbb.19.2011.08.16.03.06.24 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 16 Aug 2011 03:06:25 -0700 (PDT) Date: Tue, 16 Aug 2011 11:05:20 +0100 From: Jeremiah Matthey To: Jiri Kosina Cc: Benjamin_Tissoires@logitech.com, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH] usbhid: Add the malfunctioning SiGma Micro chip to the list of hid-quirks Message-ID: <20110816100520.GA13291@solar.elec.gla.ac.uk> References: <20110814144310.GA3303@netstar> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20110814144310.GA3303@netstar> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 16 Aug 2011 10:06:31 +0000 (UTC) Patch to add SiGma Micro-based keyboards (1c4f:0002) to hid-quirks. These keyboards dont seem to allow the records to be initialized, and hence a timeout occurs when the usbhid driver attempts to initialize them. The patch just adds the signature for these keyboards to the hid-quirks list with the setting HID_QUIRK_NO_INIT_REPORTS. This removes the 5-10 second wait for the timeout to occur. This is technically a resubmit, first time i posted i didnt include the right people in the destination, was just aimed at the list, so might have gone unnoticed. (First (submitted) kernel patch, I'll learn with time :)) --- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -ru linux-3.0.1-clean/drivers/hid/hid-ids.h linux-3.0.1-patched/drivers/hid/hid-ids.h --- linux-3.0.1-clean/drivers/hid/hid-ids.h 2011-08-05 05:59:21.000000000 +0100 +++ linux-3.0.1-patched/drivers/hid/hid-ids.h 2011-08-14 15:25:58.129865922 +0100 @@ -568,6 +568,9 @@ #define USB_DEVICE_ID_SAMSUNG_IR_REMOTE 0x0001 #define USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE 0x0600 +#define USB_VENDOR_ID_SIGMA_MICRO 0x1c4f +#define USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD 0x0002 + #define USB_VENDOR_ID_SKYCABLE 0x1223 #define USB_DEVICE_ID_SKYCABLE_WIRELESS_PRESENTER 0x3F07 diff -ru linux-3.0.1-clean/drivers/hid/usbhid/hid-quirks.c linux-3.0.1-patched/drivers/hid/usbhid/hid-quirks.c --- linux-3.0.1-clean/drivers/hid/usbhid/hid-quirks.c 2011-08-05 05:59:21.000000000 +0100 +++ linux-3.0.1-patched/drivers/hid/usbhid/hid-quirks.c 2011-08-14 15:26:06.289865845 +0100 @@ -89,6 +89,7 @@ { USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_MULTI_TOUCH, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_WIRELESS, HID_QUIRK_MULTI_INPUT }, + { USB_VENDOR_ID_SIGMA_MICRO, USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD, HID_QUIRK_NO_INIT_REPORTS }, { 0, 0 } };