Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1531988

Re: [PATCH 0/2] more quirks for hid-sensor-hub

From Benjamin Tissoires <benjamin.tissoires@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 0/2] more quirks for hid-sensor-hub
Date 2016-11-29 09:20 +0100
Message-ID <sILNU-5On-11@gated-at.bofh.it> (permalink)
References <sHlLQ-7Jm-7@gated-at.bofh.it> <sIxrA-4y6-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Nov 28 2016 or thereabouts, Srinivas Pandruvada wrote:
> Hi Benjamin,
> 
> On Fri, 2016-11-25 at 11:03 +0100, Benjamin Tissoires wrote:
> > Hi Jiri,
> > 
> > here are 2 more quirks for the sensor-hub.
> > 
> > Srinivas, I am wondering if we can not detect those automatically.
> > Looking at the report_fixup, it looks like the buggy report
> > descriptors have
> > a logical max of 5 (which would correspond to an enum of 0 to 5). But
> > there
> > are 6 fields in the enum, so that means the report descriptor is just
> > wrong.
> > 
> > Given that Microsoft's driver requires a min of 1, wouldn't it be too
> > much
> > assumption to say that we need to fix the report descriptor anyway
> > when we
> > see a range of 0..5 instead of 1..6?
> 
> The problem is that they should have also changed logical minimum,
> which vendors didn't do as Windows driver will always assume
> enumeration base as 1.
> 
> As far as I can tell there was only Windows platform where base was 0,
> but I am sure that Windows update and BIOS update would have fixed that
> by now after 3 years.
> 
> I am in opinion to change this to match this with Windows driver, so
> that we don't need this quirks. This is a small change in IIO sensor
> hub driver.
> 
> If nobody has objection, I can submit a trivial change for this.

I don't have any objections (I must confess I don't have a lot of these
- 1 maybe 2), and I'd rather get rid of the quirk at all.

Cheers,
Benjamin

> 
> Thanks,
> Srinivas
> 
> 
> > 
> > Cheers,
> > Benjamin
> > 
> > Benjamin Tissoires (2):
> >   HID: sensor-hub add quirk for Microsoft Surface 3
> >   HID: sensor-hub: add quirk for Microchip MM7150
> > 
> >  drivers/hid/hid-sensor-hub.c | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] more quirks for hid-sensor-hub Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2016-11-25 11:20 +0100
  Re: [PATCH 0/2] more quirks for hid-sensor-hub Jiri Kosina <jikos@kernel.org> - 2016-11-28 14:40 +0100
  Re: [PATCH 0/2] more quirks for hid-sensor-hub Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> - 2016-11-28 18:00 +0100
    Re: [PATCH 0/2] more quirks for hid-sensor-hub Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2016-11-29 09:20 +0100

csiph-web