Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751167AbXAUR3I (ORCPT ); Sun, 21 Jan 2007 12:29:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751225AbXAUR3I (ORCPT ); Sun, 21 Jan 2007 12:29:08 -0500 Received: from twin.jikos.cz ([213.151.79.26]:51689 "EHLO twin.jikos.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751167AbXAUR3G (ORCPT ); Sun, 21 Jan 2007 12:29:06 -0500 Date: Sun, 21 Jan 2007 18:28:02 +0100 (CET) From: Jiri Kosina To: Ivan Ukhov cc: linux-kernel@vger.kernel.org Subject: Re: How to use an usb interface than is claimed by HID? In-Reply-To: Message-ID: References: <45B265E0.5020605@gmail.com> <45B2AA03.4070405@gmail.com> <45B32B80.4050208@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 27 On Sun, 21 Jan 2007, Jiri Kosina wrote: > > It's a tiny driver and it hardy can be a part of the mainline kernel > > because of its useless for everyone but me, beside I don't want to > > make someone modify the kernel code. > Then, when this is a non-standard situation anyway, would calling > hid_disconnect() for the usb_interface of your driver be enough? .. which wouldn't help you either, supposing that you don't want to touch the kernel sources at all, because this function is unexported and static. So I think that there is no straightforward way, sorry. Is this a device that doesn't exist anywhere else than on your table? I still think that putting the code in kernel (if possible) and blacklisting the device on the hid_blacklist[] is the simplest way. The other possibility is writing the driver completely in userspace, using libhid/hiddev. Would that suit your needs? -- Jiri Kosina - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/