1. 14 4月, 2020 3 次提交
  2. 03 4月, 2020 1 次提交
  3. 23 3月, 2020 1 次提交
  4. 21 3月, 2020 2 次提交
  5. 18 3月, 2020 3 次提交
    • S
      HID: Add driver fixing Glorious PC Gaming Race mouse report descriptor · 77a36a3a
      Samuel Čavoj 提交于
      The Glorious Model O mice (and also at least the Model O-, which is
      driver-wise the same mouse) have a bug in the descriptor of HID
      Report with ID 2. This report is used for Consumer Control buttons,
      which can be mapped using the provided Windows only software.
      
      Here is an excerpt from the original descriptor:
      
        INPUT(2)[INPUT]
          Field(0)
            Flags( Constant Variable Absolute )
          Field(1)
            Flags( Constant Variable Absolute )
          Field(2)
            Flags( Constant Variable Absolute )
      
      The issue is the Constant flag specified on all 3 fields, which
      causes the hid driver to ignore changes in these fields and
      essentialy causes the buttons to not work at all. The submitted driver
      patches the descriptor to end up with the following:
      
        INPUT(2)[INPUT]
          Field(0)
            Flags( Variable Relative )
          Field(1)
            Flags( Variable Relative )
          Field(2)
            Flags( Variable Relative )
      
      The Constant bit is reset and the Relative bit has been set in
      order to prevent repeat events when holding down the button.
      
      Additionally, the device name is changed from the hardware-reported
      "SINOWEALTH Wired Gaming Mouse" to "Glorious Model O" or "Glorious
      Model D".
      Signed-off-by: NSamuel Čavoj <sammko@sammserver.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      77a36a3a
    • H
      HID: lg-g15: Do not fail the probe when we fail to disable F# emulation · b8a75ead
      Hans de Goede 提交于
      By default the G1-G12 keys on the Logitech gaming keyboards send
      F1 - F12 when in "generic HID" mode.
      
      The first thing the hid-lg-g15 driver does is disable this behavior.
      
      We have received a bugreport that this does not work when the keyboard
      is connected through an Aten KVM switch. Using a gaming keyboard with
      a KVM is a bit weird setup, but still we can try to fail a bit more
      gracefully here.
      
      On the G510 keyboards the same USB-interface which is used for the gaming
      keys is also used for the media-keys. Before this commit we would call
      hid_hw_stop() on failure to disable the F# emulation and then exit the
      probe method with an error code.
      
      This not only causes us to not handle the gaming-keys, but this also
      breaks the media keys which is a regression compared to the situation
      when these keyboards where handled by the generic hidinput driver.
      
      This commit changes the error handling to clear the hiddev drvdata
      (to disable our .raw_event handler) and then returning from the probe
      method with success.
      
      The net result of this is that, when connected through a KVM, things
      work as well as they did before the hid-lg-g15 driver was introduced.
      
      Fixes: ad4203f5 ("HID: lg-g15: Add support for the G510 keyboards' gaming keys")
      BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1806321Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      b8a75ead
    • G
      HID: fix Kconfig word ordering · ad81d1c8
      Geert Uytterhoeven 提交于
      Fix a silly word ordering typo.
      
      Fixes: 42337b9d ("HID: add driver for U2F Zero built-in LED and RNG")
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      ad81d1c8
  6. 17 3月, 2020 1 次提交
  7. 16 3月, 2020 1 次提交
  8. 14 3月, 2020 2 次提交
  9. 11 3月, 2020 2 次提交
  10. 10 3月, 2020 2 次提交
  11. 05 3月, 2020 1 次提交
  12. 18 2月, 2020 3 次提交
  13. 14 2月, 2020 1 次提交
  14. 12 2月, 2020 6 次提交
  15. 03 2月, 2020 1 次提交
    • H
      HID: ite: Only bind to keyboard USB interface on Acer SW5-012 keyboard dock · beae5619
      Hans de Goede 提交于
      Commit 8f18eca9 ("HID: ite: Add USB id match for Acer SW5-012 keyboard
      dock") added the USB id for the Acer SW5-012's keyboard dock to the
      hid-ite driver to fix the rfkill driver not working.
      
      Most keyboard docks with an ITE 8595 keyboard/touchpad controller have the
      "Wireless Radio Control" bits which need the special hid-ite driver on the
      second USB interface (the mouse interface) and their touchpad only supports
      mouse emulation, so using generic hid-input handling for anything but
      the "Wireless Radio Control" bits is fine. On these devices we simply bind
      to all USB interfaces.
      
      But unlike other ITE8595 using keyboard docks, the Acer Aspire Switch 10
      (SW5-012)'s touchpad not only does mouse emulation it also supports
      HID-multitouch and all the keys including the "Wireless Radio Control"
      bits have been moved to the first USB interface (the keyboard intf).
      
      So we need hid-ite to handle the first (keyboard) USB interface and have
      it NOT bind to the second (mouse) USB interface so that that can be
      handled by hid-multitouch.c and we get proper multi-touch support.
      
      This commit changes the hid_device_id for the SW5-012 keyboard dock to
      only match on hid devices from the HID_GROUP_GENERIC group, this way
      hid-ite will not bind the the mouse/multi-touch interface which has
      HID_GROUP_MULTITOUCH_WIN_8 as group.
      This fixes the regression to mouse-emulation mode introduced by adding
      the keyboard dock USB id.
      
      Cc: stable@vger.kernel.org
      Fixes: 8f18eca9 ("HID: ite: Add USB id match for Acer SW5-012 keyboard dock")
      Reported-by: NZdeněk Rampas <zdenda.rampas@gmail.com>
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      beae5619
  16. 28 1月, 2020 1 次提交
    • F
      HID: logitech-hidpp: BatteryVoltage: only read chargeStatus if extPower is active · 4ab2bb3c
      Filipe Laíns 提交于
      In the HID++ 2.0 function getBatteryInfo() from the BatteryVoltage
      (0x1001) feature, chargeStatus is only valid if extPower is active.
      
      Previously we were ignoring extPower, which resulted in wrong values.
      
      Example:
          With an unplugged mouse
      
          $ cat /sys/class/power_supply/hidpp_battery_0/status
          Charging
      
      This patch fixes that, it also renames charge_sts to flags as
      charge_sts can be confused with chargeStatus from the spec.
      
      Spec:
      +--------+-------------------------------------------------------------------------+
      |  byte  |                                    2                                    |
      +--------+--------------+------------+------------+----------+----------+----------+
      |   bit  |     0..2     |      3     |      4     |     5    |     6    |     7    |
      +--------+--------------+------------+------------+----------+----------+----------+
      | buffer | chargeStatus | fastCharge | slowCharge | critical | (unused) | extPower |
      +--------+--------------+------------+------------+----------+----------+----------+
      Table 1 - battery voltage (0x1001), getBatteryInfo() (ASE 0), 3rd byte
      
      +-------+--------------------------------------+
      | value |                meaning               |
      +-------+--------------------------------------+
      |   0   | Charging                             |
      +-------+--------------------------------------+
      |   1   | End of charge (100% charged)         |
      +-------+--------------------------------------+
      |   2   | Charge stopped (any "normal" reason) |
      +-------+--------------------------------------+
      |   7   | Hardware error                       |
      +-------+--------------------------------------+
      Table 2 - chargeStatus value
      Signed-off-by: NFilipe Laíns <lains@archlinux.org>
      Tested-by: NPedro Vanzella <pedro@pedrovanzella.com>
      Reviewed-by: NPedro Vanzella <pedro@pedrovanzella.com>
      Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      4ab2bb3c
  17. 13 1月, 2020 1 次提交
  18. 10 1月, 2020 1 次提交
  19. 09 1月, 2020 1 次提交
  20. 30 12月, 2019 1 次提交
  21. 19 12月, 2019 1 次提交
  22. 18 12月, 2019 4 次提交