From patchwork Tue Jan 20 16:55:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristian Evensen X-Patchwork-Id: 5671151 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 181CCC058D for ; Tue, 20 Jan 2015 17:03:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 402842024F for ; Tue, 20 Jan 2015 17:03:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 695E920225 for ; Tue, 20 Jan 2015 17:03:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755104AbbATRDU (ORCPT ); Tue, 20 Jan 2015 12:03:20 -0500 Received: from mail-wi0-f180.google.com ([209.85.212.180]:37600 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755228AbbATRDS (ORCPT ); Tue, 20 Jan 2015 12:03:18 -0500 Received: by mail-wi0-f180.google.com with SMTP id bs8so25605058wib.1; Tue, 20 Jan 2015 09:03:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=+1XWQKrqVXy11hPojELQJEgt+U3qq0JZBV0bz8P1IVI=; b=c5zJNj2kP4u2lk5W+lhLtUAdB8y3cW7L3UjkOIiY2tDwQOub72D383UhINNyOzqI0y 9tdl00NFT0FFNdC4CMYXjbN+SievqPkXbGjHx9NJok0u5hh4XGcHaoBVwNwLF4XgTkgK vEXROHazhKk9QVi6PRF9eTdYa/pLJVUWtFgTpD65Wn9jm9zmTrHZJUYBaEf5qfxkhP8j ilbwRJ2CJHlvBMO0vXPDJDnVnQQ9/fxa6cing3XuYL9LZyvxvvKLspNWcDeHwS6O/GxR dITqQBjWMiKkbasBBNTQ/Jvt9Pz/zo+UDbYMRHo6vyE/egwnc79omW4IWvJYfP3kvbuC znsw== X-Received: by 10.194.203.234 with SMTP id kt10mr17908928wjc.88.1421772933992; Tue, 20 Jan 2015 08:55:33 -0800 (PST) Received: from laptop2.lan (14.79-160-43.customer.lyse.net. [79.160.43.14]) by mx.google.com with ESMTPSA id fp2sm3741516wib.8.2015.01.20.08.55.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jan 2015 08:55:31 -0800 (PST) From: Kristian Evensen To: jkosina@suse.cz, linux-input@vger.kernel.org, linux-usb@vger.kernel.org Cc: Kristian Evensen Subject: [PATCH] usb: hid: Do not bind to Microchip Pick16F1454 Date: Tue, 20 Jan 2015 17:55:03 +0100 Message-Id: <1421772903-27746-1-git-send-email-kristian.evensen@gmail.com> X-Mailer: git-send-email 2.1.0 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 Microchip Pick16F1454 is exported as a HID device and is used by for example the Yepkit YKUSH three-port switchable USB hub. However, it is not an actual HID-device. On the Yepkit, it is used to power up/down the ports on the hub. The HID driver should ignore this device. Signed-off-by: Kristian Evensen --- drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 8b63879..77afffc 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -2328,6 +2328,7 @@ static const struct hid_device_id hid_ignore_list[] = { { HID_USB_DEVICE(USB_VENDOR_ID_MCC, USB_DEVICE_ID_MCC_PMD1208LS) }, { HID_USB_DEVICE(USB_VENDOR_ID_MICROCHIP, USB_DEVICE_ID_PICKIT1) }, { HID_USB_DEVICE(USB_VENDOR_ID_MICROCHIP, USB_DEVICE_ID_PICKIT2) }, + { HID_USB_DEVICE(USB_VENDOR_ID_MICROCHIP, USB_DEVICE_ID_PICK16F1454) }, { HID_USB_DEVICE(USB_VENDOR_ID_NATIONAL_SEMICONDUCTOR, USB_DEVICE_ID_N_S_HARMONY) }, { HID_USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK_ADU100) }, { HID_USB_DEVICE(USB_VENDOR_ID_ONTRAK, USB_DEVICE_ID_ONTRAK_ADU100 + 20) }, diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 9243359..8df4744 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -638,6 +638,7 @@ #define USB_DEVICE_ID_PICKIT2 0x0033 #define USB_DEVICE_ID_PICOLCD 0xc002 #define USB_DEVICE_ID_PICOLCD_BOOTLOADER 0xf002 +#define USB_DEVICE_ID_PICK16F1454 0x0042 #define USB_VENDOR_ID_MICROSOFT 0x045e #define USB_DEVICE_ID_SIDEWINDER_GV 0x003b