1. 22 10月, 2014 1 次提交
  2. 02 10月, 2014 1 次提交
  3. 01 10月, 2014 6 次提交
  4. 25 9月, 2014 1 次提交
  5. 22 9月, 2014 2 次提交
  6. 15 9月, 2014 2 次提交
  7. 13 9月, 2014 1 次提交
  8. 12 9月, 2014 1 次提交
    • B
      HID: wacom: make the WL connection friendly for the desktop · 12969e3b
      Benjamin Tissoires 提交于
      Currently, tablets connected to the WL receiver all share the same
      VID/PID. There is no way for the user space to know which one is which
      besides parsing the name. We can force the PID to be set to the
      actual hardware. This way, the input device will have the correct PID
      which can be match in libwacom.
      
      With only this trick, the pad input does not inherit the ID_INPUT_TABLET
      udev property from its parent. We can force udev to accept it by declaring
      a BTN_STYLUS which is never used.
      
      This way, tablets connected through WL can be used from the user point of
      view in the same way they are used while connected through wire.
      Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Reviewed-by: NPing Cheng <pingc@wacom.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      12969e3b
  9. 11 9月, 2014 4 次提交
  10. 08 9月, 2014 5 次提交
  11. 04 9月, 2014 6 次提交
  12. 01 9月, 2014 1 次提交
    • F
      HID: sony: Set the Sixaxis cable state correctly · 9fddd74a
      Frank Praznik 提交于
      Bit 3 in byte 31 of the Sixaxis report indicates whether the battery is
      charging or not charging as opposed to whether or not the cable is plugged in.
      As a result, when connected via USB and fully charged, the power_supply status
      is wrongly reported as 'Discharging' instead of 'Full'.
      
      Use the battery level value to set the cable state so that the power status
      is reported correctly as that seems to be the only reliable way to determine the
      cable status on the Sixaxis.
      Signed-off-by: NFrank Praznik <frank.praznik@oh.rr.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      9fddd74a
  13. 28 8月, 2014 2 次提交
  14. 27 8月, 2014 2 次提交
  15. 26 8月, 2014 1 次提交
  16. 25 8月, 2014 4 次提交
    • D
      HID: uhid: report to user-space whether reports are numbered · c2b2f16c
      David Herrmann 提交于
      This makes UHID_START include a "dev_flags" field that describes details
      of the hid-device in the kernel. The first flags we introduce describe
      whether a given report-type uses numbered reports. This is useful for
      transport layers that force report-numbers and therefore might have to
      prefix kernel-provided HID-messages with the report-number.
      
      Currently, only HoG needs this and the spec only talks about "global
      report numbers". That is, it's a global boolean not a per-type boolean.
      However, given the quirks we already have in kernel-space, a per-type
      value seems much more appropriate.
      Signed-off-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      c2b2f16c
    • D
      HID: uhid: implement SET_REPORT · 11c22155
      David Herrmann 提交于
      We so far lacked support for hid_hw_raw_request(..., HID_REQ_SET_REPORT);
      Add support for it and simply forward the request to user-space. Note that
      SET_REPORT is synchronous, just like GET_REPORT, even though it does not
      provide any data back besides an error code.
      
      If a transport layer does SET_REPORT asynchronously, they can just ACK it
      immediately by writing an uhid_set_report_reply to uhid.
      
      This patch re-uses the synchronous uhid-report infrastructure to query
      user-space. Note that this means you cannot run SET_REPORT and GET_REPORT
      in parallel. However, that has always been a restriction of HID and due to
      its blocking nature, this is just fine. Maybe some future transport layer
      supports parallel requests (very unlikely), however, until then lets not
      over-complicate things and avoid request-lookup-tables.
      Signed-off-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      11c22155
    • D
      HID: uhid: rename uhid_raw_request to uhid_hid_raw_request · 7c4003bc
      David Herrmann 提交于
      We use strict prefixed in uhid.c:
        uhid_char_*: implement char-dev callbacks
        uhid_dev_*: implement uhid device management and runtime
        uhid_hid_*: implement hid-dev callbacks
      
      uhid_raw_request is an hid callback, so rename it to uhid_hid_raw_request.
      
      While at it, move it closer to it's extracted helpers and keep the same
      order as in "struct hid_driver".
      Signed-off-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      7c4003bc
    • D
      HID: uhid: add ABI compatible UHID_GET_REPORT replacing UHID_FEATURE · fa71f32b
      David Herrmann 提交于
      The old hdev->hid_get_raw_report() was broken by design. It was never
      clear what kind of HW request it should trigger. Benjamin fixed that with
      the core HID cleanup, though we never really adjusted uhid.
      
      Unfortunately, our old UHID_FEATURE command was modelled around the broken
      hid_get_raw_report(). We converted it silently to the new GET_REPORT and
      nothing broke. Make this explicit by renaming UHID_FEATURE to
      UHID_GET_REPORT and UHID_FEATURE_ANSWER to UHID_GET_REPORT_REPLY.
      
      Note that this is 100% ABI compatible to UHID_FEATURE. This is just a
      rename. But we have to keep the old definitions around to not break API.
      
      >From now on, UHID_GET_REPORT must trigger a GET_REPORT request on the
      user-space hardware layer. All the ambiguity due to the weird "feature"
      name should be gone now.
      Signed-off-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      fa71f32b