From: Rafi Rubin <rafi@seas.upenn.edu>
To: Stephane Chatty <chatty@lii-enac.fr>
Cc: linux-input@vger.kernel.org, jkosina@suse.cz, micki@n-trig.com,
dmitry.torokhov@gmail.com, chatty@enac.fr
Subject: Re: [PATCH] Fix for N-trig touch panel with recent firmware
Date: Tue, 06 Apr 2010 16:28:00 -0400 [thread overview]
Message-ID: <4BBB9950.7090004@seas.upenn.edu> (raw)
In-Reply-To: <20100406202258.837F19520E@smtp.lii-enac.fr>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I can confirm I tested this patch. On a side note, Micki, you are quite right,
sending the reports does need to come after starting the device.
Rafi
Stephane Chatty wrote:
> Added an init message that avoids device freeze with recent firmware.
>
> Signed-off-by: Stephane Chatty <chatty@enac.fr>
> Tested-by: Rafi Rubin <rafi@seas.upenn.edu>
>
> diff -rupN a/drivers/hid/hid-ntrig.c b/drivers/hid/hid-ntrig.c
> --- a/drivers/hid/hid-ntrig.c 2010-03-20 02:17:57.000000000 +0100
> +++ b/drivers/hid/hid-ntrig.c 2010-04-02 01:06:11.000000000 +0200
> @@ -1,8 +1,8 @@
> /*
> * HID driver for N-Trig touchscreens
> *
> - * Copyright (c) 2008 Rafi Rubin
> - * Copyright (c) 2009 Stephane Chatty
> + * Copyright (c) 2008-2010 Rafi Rubin
> + * Copyright (c) 2009-2010 Stephane Chatty
> *
> */
>
> @@ -16,6 +16,8 @@
> #include <linux/device.h>
> #include <linux/hid.h>
> #include <linux/module.h>
> +#include <linux/usb.h>
> +#include "usbhid/usbhid.h"
>
> #include "hid-ids.h"
>
> @@ -285,6 +287,7 @@ static int ntrig_probe(struct hid_device
> struct ntrig_data *nd;
> struct hid_input *hidinput;
> struct input_dev *input;
> + struct hid_report *report;
>
> if (id->driver_data)
> hdev->quirks |= HID_QUIRK_MULTI_INPUT;
> @@ -348,6 +351,11 @@ static int ntrig_probe(struct hid_device
> }
> }
>
> + report = hdev->report_enum[HID_FEATURE_REPORT].report_id_hash[0x0a];
> + if (report)
> + usbhid_submit_report(hdev, report, USB_DIR_OUT);
> +
> +
> return 0;
> err_free:
> kfree(nd);
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAku7mVAACgkQwuRiAT9o609EcACdHm83W1+a78Cudgg0Hn2bXNV/
FzgAnipS24BjtTvTi691db4NzPcViZqx
=AIfV
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2010-04-06 20:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-06 20:22 [PATCH] Fix for N-trig touch panel with recent firmware Stephane Chatty
2010-04-06 20:28 ` Rafi Rubin [this message]
2010-04-06 21:06 ` Jiri Kosina
2010-04-06 21:12 ` Stéphane Chatty
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=4BBB9950.7090004@seas.upenn.edu \
--to=rafi@seas.upenn.edu \
--cc=chatty@enac.fr \
--cc=chatty@lii-enac.fr \
--cc=dmitry.torokhov@gmail.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=micki@n-trig.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.