From patchwork Thu Mar 6 20:57:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peter F. Patel-Schneider" X-Patchwork-Id: 3786391 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9F2D29F35F for ; Thu, 6 Mar 2014 20:58:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C00D8201F7 for ; Thu, 6 Mar 2014 20:58:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E7783201B6 for ; Thu, 6 Mar 2014 20:57:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752078AbaCFU57 (ORCPT ); Thu, 6 Mar 2014 15:57:59 -0500 Received: from mail-qa0-f54.google.com ([209.85.216.54]:64444 "EHLO mail-qa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751951AbaCFU56 (ORCPT ); Thu, 6 Mar 2014 15:57:58 -0500 Received: by mail-qa0-f54.google.com with SMTP id w8so3168297qac.27 for ; Thu, 06 Mar 2014 12:57:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=QzYVkdfcJOBsl5qA0Lf2p7FQBtGYyEazgy6ETVKbkZU=; b=Fd5lt/VIR/UNs4NJt9gQ28IpYU+24xuCCRaiaWr/pqL/LxvLC6HSv/NU+482u5AhcX Akw+EOTRc4/qwRVeCrmYM0RIgNyp670rGEY7gov3yi8QsgbSYfVkXuUdrpj/3zXHYw2w NZM7xt9ZVJbDI0ulNdol4BZ6NQgDBn0VIZweYns/HDhBQ+FYyLVD+jhxTRg9Y+s3UNq7 2joBIT9WEWT2TogCG2FGpGR0DrREiAUAcjrWygfen5eZpZXWQGMbNT/VSEJt0kzJEMaY rRAyEJaLN+DqJgFpzsSjSSRF1560R5V+xZuZINu9TDK5GeINdbGBsTnQddWlxE9nzZBo gluA== X-Received: by 10.224.30.70 with SMTP id t6mr12819303qac.30.1394139477895; Thu, 06 Mar 2014 12:57:57 -0800 (PST) Received: from [192.168.88.122] ([199.4.160.88]) by mx.google.com with ESMTPSA id c90sm2807786qgd.3.2014.03.06.12.57.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Mar 2014 12:57:56 -0800 (PST) Message-ID: <5318E151.9040702@gmail.com> Date: Thu, 06 Mar 2014 12:57:53 -0800 From: "Peter F. Patel-Schneider" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: linux-input@vger.kernel.org CC: srinivas.pandruvada@linux.intel.com Subject: [PATCH] iio:hid-sensor-hub: Add in quirk for sensor hub in Lenovo Ideapad Yogas Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The sensor hub in Lenovo Yogas needs the enumeration quirk. I've been running the patch for about a week with no problems, whereas the unpatched drivers reliably mis-initialized the sensors. Signed-off-by: Peter F. Patel-Schneider Acked-by: Srinivas Pandruvada --- drivers/hid/hid-ids.h | 3 +++ drivers/hid/hid-sensor-hub.c | 3 +++ 2 files changed, 6 insertions(+) { } -- 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 --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 5a5248f..f944e37 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -823,6 +823,9 @@ #define USB_DEVICE_ID_SYNAPTICS_HD 0x0ac3 #define USB_DEVICE_ID_SYNAPTICS_QUAD_HD 0x1ac3 +#define USB_VENDOR_ID_TEXAS_INSTRUMENTS 0x2047 +#define USB_DEVICE_ID_TEXAS_INSTRUMENTS_LENOVO_YOGA 0x0855 + #define USB_VENDOR_ID_THINGM 0x27b8 #define USB_DEVICE_ID_BLINK1 0x01ed diff --git a/drivers/hid/hid-sensor-hub.c b/drivers/hid/hid-sensor-hub.c index 46f4480..597732b 100644 --- a/drivers/hid/hid-sensor-hub.c +++ b/drivers/hid/hid-sensor-hub.c @@ -665,6 +665,9 @@ static const struct hid_device_id sensor_hub_devices[] = { { HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, USB_VENDOR_ID_INTEL_1, USB_DEVICE_ID_INTEL_HID_SENSOR), .driver_data = HID_SENSOR_HUB_ENUM_QUIRK}, + { HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, USB_VENDOR_ID_TEXAS_INSTRUMENTS, + USB_DEVICE_ID_TEXAS_INSTRUMENTS_LENOVO_YOGA), + .driver_data = HID_SENSOR_HUB_ENUM_QUIRK}, { HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, HID_ANY_ID, HID_ANY_ID) },