1. 19 4月, 2010 1 次提交
    • B
      HID: add HID_QUIRK_HIDDEV_FORCE and HID_QUIRK_NO_IGNORE · b5e5a37e
      Bastien Nocera 提交于
      Add two quirks to make it possible for usbhid module options to
      override whether a device is ignored (HID_QUIRK_NO_IGNORE) and
      whether to connect a hiddev device (HID_QUIRK_HIDDEV_FORCE).
      
      Passing HID_QUIRK_NO_IGNORE for your device means that it will
      not be ignored by the HID layer, even if present in a blacklist.
      
      HID_QUIRK_HIDDEV_FORCE will force the creation of a hiddev for that
      device, making it accessible from user-space.
      
      Tested with an Apple IR Receiver, switching it from using appleir
      to using lirc's macmini driver.
      Signed-off-by: NBastien Nocera <hadess@hadess.net>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      b5e5a37e
  2. 13 4月, 2010 1 次提交
    • P
      HID: non-overlapping zeroing of extra bits · 75c28df8
      Pete Zaitcev 提交于
      From my review of the way the unused bits of report are being zeroed,
      it seems like there must be a bug. Currently, the zeroing is done
      in hid_output_field and it covers any bits between the last used bit
      and the end of the byte. But in case of, say, my keyboard, NumLock is
      mask 0x01 and CapsLock is 0x02. Invoking hid_output_field for NumLock
      definitely zeroes across CapsLock. The only reason this works is that
      the fields are sorted by the offset.
      
      It would be more correct and simpler to zero-fill the buffer into
      which the fields are set.
      
      The patch is tested with an IBM keyboard that is improperly sensitive
      to out-of-report pad bits, the extra bits are still zeroed and the
      fields continue to work as expected. It is also tested with good
      keyboards.
      
      In case, a related bug in RHEL 5 is tracked with Red Hat bug 513934.
      Signed-off-by: NPete Zaitcev <zaitcev@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      75c28df8
  3. 12 4月, 2010 1 次提交
  4. 03 4月, 2010 1 次提交
  5. 22 3月, 2010 2 次提交
  6. 16 3月, 2010 1 次提交
  7. 15 3月, 2010 1 次提交
  8. 25 2月, 2010 1 次提交
  9. 24 2月, 2010 31 次提交