1. 14 9月, 2017 4 次提交
  2. 08 9月, 2017 1 次提交
    • L
      HID: rmi: Make sure the HID device is opened on resume · cac72b99
      Lyude 提交于
      So it looks like that suspend/resume has actually always been broken on
      hid-rmi. The fact it worked was a rather silly coincidence that was
      relying on the HID device to already be opened upon resume. This means
      that so long as anything was reading the /dev/input/eventX node for for
      an RMI device, it would suspend and resume correctly. As well, if
      nothing happened to be keeping the HID device away it would shut off,
      then the RMI driver would get confused on resume when it stopped
      responding and explode.
      
      So, call hid_hw_open() in rmi_post_resume() so we make sure that the
      device is alive before we try talking to it.
      
      This fixes RMI device suspend/resume over HID.
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=196851
      [jkosina@suse.cz: removed useless hunk that was zero-initializing 'ret']
      Signed-off-by: NLyude <lyude@redhat.com>
      Cc: Andrew Duggan <aduggan@synaptics.com>
      Cc: stable@vger.kernel.org
      Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      cac72b99
  3. 06 9月, 2017 8 次提交
  4. 15 8月, 2017 3 次提交
  5. 10 8月, 2017 3 次提交
  6. 08 8月, 2017 2 次提交
    • J
      HID: wacom: Do not completely map WACOM_HID_WD_TOUCHRINGSTATUS usage · 8d411cbf
      Jason Gerecke 提交于
      The WACOM_HID_WD_TOUCHRINGSTATUS usage is a single bit which tells us
      whether the touchring is currently in use or not. Because we need to
      reset the axis value to 0 when the finger is removed, we call
      'wacom_map_usage' to ensure that the required type/code values are
      associated with the usage. The 'wacom_map_usage' also sets up the axis
      range and resolution, however, which is not desired in this particular
      case.
      
      Although xf86-input-wacom doesn't do really do anything with the ring's
      range or resolution, the libinput driver (for Wayland environments)
      uses these values to provide proper angle indications to userspace.
      
      Fixes: 60a22186 ("HID: wacom: generic: add support for touchring")
      Cc: stable@vger.kernel.org
      Signed-off-by: NJason Gerecke <jason.gerecke@wacom.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      8d411cbf
    • H
      HID: asus: Add T100CHI bluetooth keyboard dock touchpad support · 73c75d39
      Hans de Goede 提交于
      Put the touchpad in native (absolute coordinate mode) and export it to
      userspace as a touchpad rather then as a mouse.
      
      Note this requires HID_QUIRK_MULTI_INPUT as the T100CHI keyboard dock
      has all functionality on a single HID interface and userspace expects
      touchpads to be on a separate input_dev. Without MULTI_INPUT userspace
      will ignore the keyboard part of the keyboard/touchpad combo.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      73c75d39
  7. 03 8月, 2017 7 次提交
  8. 02 8月, 2017 2 次提交
  9. 01 8月, 2017 2 次提交
  10. 31 7月, 2017 1 次提交
  11. 27 7月, 2017 2 次提交
    • J
      HID: wacom: Improve generic name generation · 09dc28ac
      Jason Gerecke 提交于
      The 'wacom_update_name' function is responsible for producing names for
      the input device nodes based on the hardware device name. Commit f2209d4a
      added the ability to strip off prefixes like "Wacom Co.,Ltd." where the
      prefix was immediately (and redundantly) followed by "Wacom". The
      2nd-generation Intuos Pro 2 has such a prefix, but with a small error
      (the period and comma are swapped) that prevents the existing code from
      matching it. We're loath to extend the number of cases out endlessly and
      so instead try to be smarter about name generation.
      
      We observe that the cause of the redundant prefixes is HID combining the
      manufacturer and product strings of USB devices together. By using the
      original product name (with "Wacom" prefixed, if it does not already
      exist in the string) we can bypass the gyrations to find and remove
      redundant prefixes. Other devices either don't have a manufacturer string
      that needs to be removed (Bluetooth, uhid) or should have their name
      generated from scratch (I2C).
      Signed-off-by: NJason Gerecke <jason.gerecke@wacom.com>
      Acked-By: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      09dc28ac
    • J
      HID: introduce hid_is_using_ll_driver · fc2237a7
      Jason Gerecke 提交于
      Although HID itself is transport-agnostic, occasionally a driver may
      want to interact with the low-level transport that a device is connected
      through. To do this, we need to know what kind of bus is in use. The
      first guess may be to look at the 'bus' field of the 'struct hid_device',
      but this field may be emulated in some cases (e.g. uhid).
      
      More ideally, we can check which ll_driver a device is using. This
      function introduces a 'hid_is_using_ll_driver' function and makes the
      'struct hid_ll_driver' of the four most common transports accessible
      through hid.h.
      Signed-off-by: NJason Gerecke <jason.gerecke@wacom.com>
      Acked-By: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      fc2237a7
  12. 24 7月, 2017 1 次提交
  13. 22 7月, 2017 1 次提交
  14. 20 7月, 2017 3 次提交