1. 14 10月, 2007 6 次提交
    • J
      HID: Report usage codes of keys as EV_MSC scancode events · c01d50d1
      Jiri Kosina 提交于
      Current HID layer does not report usage codes to the input layer. This feature
      was previously removed, because it caused unnecessary storm of events in cases
      of positioning devices, etc.
      
      This patch adds reporting of usage codes as EV_MSC events only for key events.
      We issue the EV_MSC event only if the state of the key corresponding to the
      given code has changed, so that we don't report usages that are sent in every
      report even if the state hasn't changed (for example Shift/Caps Lock/...
      states as sent by various keyboards).
      
      This functionality is required at least by KeyTouch in order to provide
      convenient means for remapping the usage codes.
      
      Cc: Marvin Raaijmakers <marvin.nospam@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      c01d50d1
    • J
      HID: ignore all non-LED usages in output fields in hid-input · 82eb1219
      Jiri Kosina 提交于
      We have to ignore all non-LED usages in output fields if the
      report descriptor of the device specifies any. If we don't do
      so, the devices which contain the same usages both in input and
      output reports with different parameters will mess things up. In
      hid-input, we currently care only for the input usages, with exception
      for LEDs. All other output usages should be properly handled by
      appropriate force-feedback driver.
      
      Fixes auto-calibration for Saitek Cyborg Evo Force joystick.
      Reported-by: NRenato Golin <rengolin@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      82eb1219
    • J
      HID: fix whitespace damage · 77b29662
      Jiri Kosina 提交于
      Fixes some trivial whitespace damage in hid-input.c
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      77b29662
    • D
      HID: add support for Thrustmaster FGT Force Feedback wheel · b27c9590
      Dmitry Torokhov 提交于
      Rework thrustmaster force-feedback module to support devices having
      different types of force feedback effects. Add signatures of
      Thrustmaster FGT Rumble Force and Thrustmaster FGT Force Feedback
      wheels to the list of devices dupported by the module.
      
      Parts of the patch were lifted off a simalar patch by
      Anssi Hannula <anssi.hannula@gmail.com>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      b27c9590
    • O
      HID: minimal autosuspend support for USB HID devices · 933e3187
      Oliver Neukum 提交于
      Autosuspend for USB HID devices remains problematic as far as mice
      and keyboards are concerned. While I am working on a grand solution,
      here's a minimalist patch that works for those devices not continously
      in use.
      Signed-off-by: NOliver Neukum <oneukum@suse.de>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      933e3187
    • J
      HID: add support for Microsoft Natural Ergonomic Keyboard 4000 · 1fe8736d
      Jiri Kosina 提交于
      This keyboard emits a few usages that are not handled properly by
      hid-input.
      
      The usages from MSVENDOR page are colliding with Chicony Tactical
      Pad device, so we have to distinguish in runtime. Ugly ...
      
      Also, the buttons 1-5 have to be handled in a non-standard way,
      as they are emitted by the keyboard in a bitfield-like fashion, but
      the field is not presented as bit-field by the keyboard. The keys can't
      be pressed simultaneously, so the handling we have is correct.
      
      This patch also extends hid_keyboard[] with KPLeftParenthesis and
      KPRightParenthesis as defined by Keyboard page in HUT 1.12. The
      corresponding usages are also emitted by this keyboard.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      1fe8736d
  2. 19 8月, 2007 1 次提交
  3. 02 8月, 2007 6 次提交
  4. 13 7月, 2007 2 次提交
    • A
      USB: add reset_resume method · f07600cf
      Alan Stern 提交于
      This patch (as918) introduces a new USB driver method: reset_resume.
      It is called when a device needs to be reset as part of a resume
      procedure (whether because of a device quirk or because of the
      USB-Persist facility), thereby taking over a role formerly assigned to
      the post_reset method.  As a consequence, post_reset no longer needs
      an argument indicating whether it is being called as part of a
      reset-resume.  This separation of functions makes the code clearer.
      
      In addition, the pre_reset and post_reset method return types are
      changed; they now must return an error code.  The return value is
      unused at present, but at some later time we may unbind drivers and
      re-probe if they encounter an error during reset handling.
      
      The existing pre_reset and post_reset methods in the usbhid,
      usb-storage, and hub drivers are updated to match the new
      requirements.  For usbhid the post_reset routine is also used for
      reset_resume (duplicate method pointers); for the other drivers a new
      reset_resume routine is added.  The change to hub.c looks bigger than
      it really is, because mark_children_for_reset_resume() gets moved down
      next to the new hub_reset_resume() routine.
      
      A minor change to usb-storage makes the usb_stor_report_bus_reset()
      routine acquire the host lock instead of requiring the caller to hold
      it already.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      CC: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      f07600cf
    • A
      USB: add USB-Persist facility · 0458d5b4
      Alan Stern 提交于
      This patch (as886) adds the controversial USB-persist facility,
      allowing USB devices to persist across a power loss during system
      suspend.
      
      The facility is controlled by a new Kconfig option (with appropriate
      warnings about the potential dangers); when the option is off the
      behavior will remain the same as it is now.  But when the option is
      on, people will be able to use suspend-to-disk and keep their USB
      filesystems intact -- something particularly valuable for small
      machines where the root filesystem is on a USB device!
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0458d5b4
  5. 09 7月, 2007 14 次提交
  6. 10 5月, 2007 1 次提交
  7. 09 5月, 2007 8 次提交
  8. 29 4月, 2007 1 次提交
  9. 19 4月, 2007 1 次提交