From patchwork Tue May 25 20:53:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jind=C5=99ich_Makovi=C4=8Dka?= X-Patchwork-Id: 102290 X-Patchwork-Delegate: jikos@jikos.cz Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4PKriWN019758 for ; Tue, 25 May 2010 20:53:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758817Ab0EYUxf (ORCPT ); Tue, 25 May 2010 16:53:35 -0400 Received: from lo.gmane.org ([80.91.229.12]:51585 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756378Ab0EYUxe (ORCPT ); Tue, 25 May 2010 16:53:34 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OH17y-0000wp-QN for linux-input@vger.kernel.org; Tue, 25 May 2010 22:53:30 +0200 Received: from r11at174.net.upc.cz ([94.112.45.174]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 May 2010 22:53:30 +0200 Received: from makovick by r11at174.net.upc.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 May 2010 22:53:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: linux-input@vger.kernel.org connect(): No such file or directory From: Jindrich Makovicka Subject: Re: [PATCH] HID: check for HID_QUIRK_IGNORE during probing Date: Tue, 25 May 2010 22:53:23 +0200 Lines: 19 Message-ID: <20100525225323.134b2c00@holly> References: <20100523204725.6e9e8dad@holly> Mime-Version: 1.0 X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: r11at174.net.upc.cz X-Newsreader: Claws Mail 3.7.6 (GTK+ 2.20.1; x86_64-pc-linux-gnu) 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.3 (demeter.kernel.org [140.211.167.41]); Tue, 25 May 2010 20:53:44 +0000 (UTC) --- hid-core.c.orig 2010-05-25 22:04:58.000000000 +0200 +++ hid-core.c 2010-05-25 22:08:53.791241376 +0200 @@ -1759,7 +1759,8 @@ /* we need to kill them here, otherwise they will stay allocated to * wait for coming driver */ - if (!(hdev->quirks & HID_QUIRK_NO_IGNORE) && hid_ignore(hdev)) + if (!(hdev->quirks & HID_QUIRK_NO_IGNORE) + && (hid_ignore(hdev) || (hdev->quirks & HID_QUIRK_IGNORE))) return -ENODEV;