From: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
To: linux-input@vger.kernel.org
Subject: Re: [PATCH] HID: hid-sensor-hub: do not process feature reports in raw_even
Date: Wed, 29 May 2013 14:48:10 -0700 [thread overview]
Message-ID: <51A6779A.6050709@linux.intel.com> (raw)
Hi Jiri,
Daniel has tested and confirmed that this patch fixes issue.
Thanks,
Srinivas
-------- Original Message --------
Subject: Re: Fwd: Re: [PATCH] HID: hid-sensor-hub: do not process
feature reports in raw_event
Date: Wed, 29 May 2013 12:49:42 -0700
From: Daniel Leung <daniel.leung@linux.intel.com>
To: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
With this patch, the sensor hub works on the Acer Iconia W700.
The accelerometer and gyroscope are both powered on and are sending
readings.
Daniel
On Wed, 29 May 2013 07:55:44 -0700
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> wrote:
>
> Hi Daniel,
>
> Can you test this? I will test on the hub I have also.
>
> Thanks,
> Srinivas
>
> -------- Original Message --------
> Subject: Re: [PATCH] HID: hid-sensor-hub: do not process feature
> reports in raw_event
> Date: Wed, 29 May 2013 16:19:49 +0200 (CEST)
> From: Jiri Kosina <jkosina@suse.cz>
> To: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> CC: Daniel Leung <daniel.leung@linux.intel.com>,
> srinivas.pandruvada@intel.com, linux-input@vger.kernel.org,
> linux-kernel@vger.kernel.org
>
>
>
> On Wed, 10 Apr 2013, Srinivas Pandruvada wrote:
>
> > I don't know if this should be fixed in client drivers since other
drivers may
> > have this issue.
>
> Agreed.
>
> Srinivas, how about the patch below, could you please test it in your
> scenario to see whether it actually fixes the issue?
>
> Thanks.
>
>
> diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
> index 264f550..65879b9 100644
> --- a/drivers/hid/hid-core.c
> +++ b/drivers/hid/hid-core.c
> @@ -1293,7 +1293,7 @@ int hid_input_report(struct hid_device *hid,
int type, u8 *data, int size, int i
>
> if (hdrv && hdrv->raw_event && hid_match_report(hid, report)) {
> ret = hdrv->raw_event(hid, report, data, size);
> - if (ret != 0) {
> + if (ret < 0) {
> ret = ret < 0 ? ret : 0;
> goto unlock;
> }
> --
> Jiri Kosina
> SUSE Labs
> --
> To unsubscribe from this list: send the line "unsubscribe linux-input" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
reply other threads:[~2013-05-29 21:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=51A6779A.6050709@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=linux-input@vger.kernel.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 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.