From: Greg KH <gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
To: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Srinivas Pandruvada
<srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
jkosina-AlSwsSmVLrQ@public.gmane.org,
linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 2/2] iio: hid-sensors: Fix power and report state
Date: Sat, 30 Nov 2013 09:07:32 -0800 [thread overview]
Message-ID: <20131130170732.GA16738@kroah.com> (raw)
In-Reply-To: <5299CBD0.4030403-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
On Sat, Nov 30, 2013 at 11:28:16AM +0000, Jonathan Cameron wrote:
> On 11/27/13 22:19, Srinivas Pandruvada wrote:
> > In the original HID sensor hub firmwares all Named array enums were
> > to 0-based. But the most recent hub implemented as 1-based,
> > because of the implementation by one of the major OS vendor.
> > Using logical minimum for the field as the base of enum. So we add
> > logical minimum to the selector values before setting those fields.
> > Some sensor hub FWs already changed logical minimum from 0 to 1
> > to reflect this and hope every other vendor will follow.
> > There is no easy way to add a common HID quirk for NAry elements,
> > even if the standard specifies these field as NAry, the collection
> > used to describe selectors is still just "logical".
> >
> > Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
>
> Looks like a good solution to me.
>
> This one is a little interesting. Technically I 'believe' we don't have
> a bug as it is possible to make these devices work via the kconfig option
> and it definitely isn't a regression. As such I have applied this to the
> branch intended for the next kernel cycled (togreg) rather than to the
> fixes branch.
>
> If people have a very strong feeling about this then shout reasonably quickly - I'll
> probably hold off sending that branch to Greg for a few days anyway.
>
> I've cc'd GregKH to see if he has any input on the path this should take.
Making things "dynamic" and not depending on a random Kconfig option
(which one should a distro pick?) is a -fix in my mind...
thanks,
greg k-h
WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Jonathan Cameron <jic23@kernel.org>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
jkosina@suse.cz, linux-input@vger.kernel.org,
linux-iio@vger.kernel.org
Subject: Re: [PATCH 2/2] iio: hid-sensors: Fix power and report state
Date: Sat, 30 Nov 2013 09:07:32 -0800 [thread overview]
Message-ID: <20131130170732.GA16738@kroah.com> (raw)
In-Reply-To: <5299CBD0.4030403@kernel.org>
On Sat, Nov 30, 2013 at 11:28:16AM +0000, Jonathan Cameron wrote:
> On 11/27/13 22:19, Srinivas Pandruvada wrote:
> > In the original HID sensor hub firmwares all Named array enums were
> > to 0-based. But the most recent hub implemented as 1-based,
> > because of the implementation by one of the major OS vendor.
> > Using logical minimum for the field as the base of enum. So we add
> > logical minimum to the selector values before setting those fields.
> > Some sensor hub FWs already changed logical minimum from 0 to 1
> > to reflect this and hope every other vendor will follow.
> > There is no easy way to add a common HID quirk for NAry elements,
> > even if the standard specifies these field as NAry, the collection
> > used to describe selectors is still just "logical".
> >
> > Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
>
> Looks like a good solution to me.
>
> This one is a little interesting. Technically I 'believe' we don't have
> a bug as it is possible to make these devices work via the kconfig option
> and it definitely isn't a regression. As such I have applied this to the
> branch intended for the next kernel cycled (togreg) rather than to the
> fixes branch.
>
> If people have a very strong feeling about this then shout reasonably quickly - I'll
> probably hold off sending that branch to Greg for a few days anyway.
>
> I've cc'd GregKH to see if he has any input on the path this should take.
Making things "dynamic" and not depending on a random Kconfig option
(which one should a distro pick?) is a -fix in my mind...
thanks,
greg k-h
next prev parent reply other threads:[~2013-11-30 17:07 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-27 22:19 [PATCH 1/2] HID: hid-sensor-hub: Add logical min and max Srinivas Pandruvada
2013-11-27 22:19 ` [PATCH 2/2] iio: hid-sensors: Fix power and report state Srinivas Pandruvada
[not found] ` <1385590783-27604-2-git-send-email-srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2013-11-30 11:28 ` Jonathan Cameron
2013-11-30 11:28 ` Jonathan Cameron
[not found] ` <5299CBD0.4030403-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-11-30 17:07 ` Greg KH [this message]
2013-11-30 17:07 ` Greg KH
2013-12-02 16:19 ` Srinivas Pandruvada
2013-12-02 16:19 ` Srinivas Pandruvada
[not found] ` <529CB329.2020101-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2013-12-02 17:11 ` Jonathan Cameron
2013-12-02 17:11 ` Jonathan Cameron
[not found] ` <1385590783-27604-1-git-send-email-srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2013-11-30 11:31 ` [PATCH 1/2] HID: hid-sensor-hub: Add logical min and max Jonathan Cameron
2013-11-30 11:31 ` Jonathan Cameron
[not found] ` <5299CCAA.6090100-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2013-12-02 13:08 ` Jiri Kosina
2013-12-02 13:08 ` Jiri Kosina
2013-12-02 17:14 ` Jonathan Cameron
[not found] ` <b2e31404-966e-4f1a-a85b-a01fa63064b9-2ueSQiBKiTY7tOexoI0I+QC/G2K4zDHf@public.gmane.org>
2013-12-02 21:07 ` Jonathan Cameron
2013-12-02 21:07 ` Jonathan Cameron
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=20131130170732.GA16738@kroah.com \
--to=gregkh-hqyy1w1ycw8ekmwlsbkhg0b+6bgklq7r@public.gmane.org \
--cc=jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=jkosina-AlSwsSmVLrQ@public.gmane.org \
--cc=linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-input-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@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 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.