From: Rafi Rubin <rafi-hkHJxBBPWjbG6jMu9gPlYQ@public.gmane.org>
To: Mohamed Ikbel Boulabiar
<boulabiar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Andrew Morton
<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
Greg KH <greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>,
USB list <linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
USB list <linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: To add a device support it should be BlackListed ?
Date: Wed, 13 May 2009 19:01:56 -0400 [thread overview]
Message-ID: <4A0B5164.1060409@seas.upenn.edu> (raw)
In-Reply-To: <45cc95260905131004x186e4ff3ga79cc943f63680d0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The blacklist just tell the hid system a device needs some special handling. The patch you link to
was actually an ntrig employee trying to nix the existing functionality by telling the hid system to
ignore the device. It is not a good positive example as to how to get hid to support your device.
The first thing you should check is if IS_INPUT_APPLICATION supports the "usage" your device
reports. I'm sure there's an easy way to see what usage a device reports, but I don't know about
it. It's pretty easy to add a printk just before (or an else after)
if (IS_INPUT_APPLICATION(col->usage))
in hid-input.c
Anyway, that will tell you if the hid system is ignoring your device, and what to add to
IS_INPUT_APPLICATION in include/linux/hid.h, if necessary.
Rafi
Mohamed Ikbel Boulabiar wrote:
> Hi,
>
> I am trying with my professor Stéphane Chatty to add support to a
> Stantum multitouch tablet that is a HID device.
>
> We tried copying hid-ntrig.c and applying modification to get
> supported but we haven't reached something functional.
>
> Should we add more information to some place to reach our goals ?
> I have read this and we maybe need to blacklist the stantum somewhere
> (hid-quirks.c ?)
>
> "This patch is required for N-trig support for the Linux Environment.
> It requests the USBHID driver to ignore an N-trig device, when
> connected to the USB bus."
> http://kerneltrap.org/index.php?q=mailarchive/linux-usb/2009/1/20/4772014/thread
>
>
> Is this true ? How should we do it ? And why (because we have at least
> 3 to 4 other devices from other constructors and we want to add
> support) ?
>
>
> Thanks
> ______________________________
> Mohamed-Ikbel BOULABIAR
> Élève Ingénieur ENSI - Tunisie
> Stagiaire au LII - ENAC, Toulouse
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkoLUWQACgkQwuRiAT9o608k5gCfUt0Z7eyUD90pacILQaVzu3pW
2x4AniKheYq6fC0FFAMaQ2Z//RfGl61c
=zGPE
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2009-05-13 23:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-13 17:04 To add a device support it should be BlackListed ? Mohamed Ikbel Boulabiar
[not found] ` <45cc95260905131004x186e4ff3ga79cc943f63680d0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-13 23:01 ` Rafi Rubin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A0B5164.1060409@seas.upenn.edu \
--to=rafi-hkhjxbbpwjbg6jmu9gplyq@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=boulabiar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org \
--cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).