1. 16 May, 2017 1 commit
    • Srinivas Pandruvada's avatar
      iio: hid-sensor-hub: Implement batch mode · 138bc796
      Srinivas Pandruvada authored
      HID sensor hubs using Integrated Senor Hub (ISH) has added capability to
      support batch mode. This allows host processor to go to sleep for extended
      duration, while the sensor hub is storing samples in its internal buffers.
      
      'Commit f4f4673b ("iio: add support for hardware fifo")' implements
      feature in IIO core to implement such feature. This feature is used in
      bmc150-accel-core.c to implement batch mode. This implementation allows
      software device buffer watermark to be used as a hint to adjust hardware
      FIFO.
      
      But HID sensor hubs don't allow to change internal buffer size of FIFOs.
      Instead an additional usage id to set "maximum report latency" is defined.
      This allows host to go to sleep upto this latency period without getting
      any report. Since there is no ABI to set this latency, a new attribute
      "hwfifo_timeout" is added so that user mode can specify a latency.
      
      This change checks presence of usage id to get/set maximum report latency
      and if present, it will expose hwfifo_timeout.
      Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: Jonathan's avatarJonathan Cameron <jic23@kernel.org>
      138bc796
  2. 07 May, 2017 2 commits
  3. 25 Mar, 2017 1 commit
  4. 04 Mar, 2017 1 commit
  5. 05 Jan, 2017 1 commit
  6. 03 Dec, 2016 1 commit
  7. 23 Feb, 2015 1 commit
    • Srinivas Pandruvada's avatar
      HID: hid-sensor-hub: Add support for application collection · cb67126f
      Srinivas Pandruvada authored
      Section 4.2.5 of HID Sensor hub specification allows two methods
      defining sensor devices.
      - Each sensor device by its own collection
      - A top level application collection object, including multiple
      sensors.
      In the first method, each sensor can be in its own sensor application
      collection without a physical collection.
      In the second method there is a usage id for collection type, which
      is defined as an application collection, with multiple physical
      collections in it. It is possible to define fusion sensor with this
      and may have its own handler. If there is a callback registered
      for the collection type, then forward all reports for sensors in
      its collection to this handler.
      Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      cb67126f
  8. 29 Apr, 2014 1 commit
  9. 22 Feb, 2014 2 commits
  10. 17 Feb, 2014 1 commit
  11. 03 Dec, 2013 1 commit
  12. 02 Dec, 2013 1 commit
    • Srinivas Pandruvada's avatar
      iio: hid-sensors: Fix power and report state · 751d17e2
      Srinivas Pandruvada authored
      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: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: Jonathan's avatarJonathan Cameron <jic23@kernel.org>
      751d17e2
  13. 09 Nov, 2013 1 commit
  14. 05 Nov, 2013 3 commits
  15. 26 Aug, 2013 1 commit
  16. 06 Jan, 2013 1 commit
  17. 12 Dec, 2012 1 commit
  18. 06 Sep, 2012 1 commit