1. 01 3月, 2007 4 次提交
    • J
      HID: fix Logitech DiNovo Edge touchwheel and Logic3 /SpectraVideo middle button · 25914662
      Jiri Kosina 提交于
      Dongle shipped with Logitech DiNovo Edge (0x046d/0xc714) behaves in a weird
      non-standard way - it contains multiple reports with the same usage, which
      results in remapping of GenericDesktop.X and GenericDesktop.Y usages to
      GenericDesktop.Z and GenericDesktop.RX respectively, thus rendering the
      touchwheel unusable.
      
      The commit 35068976 solved this
      in a way that it didn't remap certain usages. This however breaks
      (at least) middle button of Logic3 / SpectraVideo (0x1267/0x0210),
      which in contrary requires the remapping.
      
      To make both of the harware work, allow remapping of these usages again,
      and introduce a quirk for Logitech DiNovo Edge "touchwheel" instead - we
      disable remapping for key, abs and rel events only for this hardware.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      25914662
    • J
      HID: fix broken Logitech S510 keyboard report descriptor; make extra keys work · b55fd23c
      Jiri Kosina 提交于
      This patch makes extra keys (F1-F12 in special mode, zooming, rotate, shuffle)
      on Logitech S510 keyboard work.
      
      Logitech S510 keyboard sends in report no. 3 keys which are far above the
      logical maximum described in descriptor for given report.
      
      This patch introduces a HID quirk for this wireless USB receiver/keyboard
      in order to fix the report descriptor before it's being parsed - the logical
      maximum and the number of usages is bumped up to 0x104d). The values are in the
      "Reserved" area of consumer HUT, so HID_MAX_USAGE had to be changed too.
      
      In addition to proper extracting of  the values from report descriptor, proper
      HID-input mapping is introduced for them.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      b55fd23c
    • J
      USB HID: use CONFIG_HID_DEBUG for outputting report descriptor · fdc9c566
      Jiri Kosina 提交于
      Report descriptor should be output when CONFIG_HID_DEBUG is defined.
      
      This also mitigates the need for DEBUG and DEBUG_DATA defines, so let's
      remove them.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      fdc9c566
    • J
      USB HID: Fix USB vendor and product IDs endianness for USB HID devices · 9fa2ad5f
      Julien BLACHE 提交于
      The USB vendor and product IDs are not byteswapped appropriately, and
      thus come out in the wrong endianness when fetched through the evdev
      using ioctl() on big endian platforms.
      Signed-off-by: NJulien BLACHE <jb@jblache.org>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      9fa2ad5f
  2. 17 2月, 2007 2 次提交
  3. 15 2月, 2007 1 次提交
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  4. 08 2月, 2007 1 次提交
  5. 05 2月, 2007 7 次提交
  6. 30 1月, 2007 1 次提交
    • J
      HID: fix pb_fnmode and move it to generic HID · 76398f96
      Jiri Kosina 提交于
      The apple powerbook people are used to switch the pb_fnmode
      setting at runtime through writing to sysfs, altering the
      module parameter value. This was broken for them in 2.6.20-rc1
      when generic HID layer was introduced, as the pb_fnmode flag
      was made per-hiddevice, instead of global variable.
      
      This patch moves the pb_fnmode module parameter from usbhid module
      to hid module, but apart from that retains backward compatibility
      with respect to changing the mode through sysfs.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      76398f96
  7. 26 1月, 2007 1 次提交
  8. 23 1月, 2007 1 次提交
  9. 22 1月, 2007 3 次提交
  10. 09 12月, 2006 6 次提交
  11. 08 12月, 2006 1 次提交
  12. 02 12月, 2006 4 次提交
  13. 22 11月, 2006 1 次提交
  14. 17 11月, 2006 2 次提交
  15. 05 11月, 2006 1 次提交
    • A
      Input: HID - add a quirk for the Logitech USB Receiver · 41ad5fba
      Anssi Hannula 提交于
      Logitech USB Receiver (046d:c101) has two interfaces. The first one
      contains fields from HID_UP_KEYBOARD and HID_UP_LED, and the other one
      contains fields from HID_UP_CONSUMER and HID_UP_LOGIVENDOR. This device
      is used with multiple wireless Logitech products, including UltraX Media
      Remote.
      
      All fields on both interfaces are either keys or leds. All fields in the
      first interface are marked as Absolute, while the fields in the second
      interface are marked as Relative. Marking the keys as relative causes
      hidinput_hid_event() to send release events right after key press
      events.
      
      The device has EV_REP set, so the userspace expects the device to send
      repeat events if a key is held down. However, as hidinput_hid_event()
      sends release events immediately, repeat events are not sent at all. In
      fact, the userspace has no way of knowing if a key is being held down.
      
      Fix this by adding a quirk for 046d:c101 which changes relative keys to
      absolute ones.
      Signed-off-by: NAnssi Hannula <anssi.hannula@gmail.com>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      41ad5fba
  16. 04 11月, 2006 2 次提交
    • N
      USB: HID: add blacklist AIRcable USB, little beautification · 23b0d968
      Naranjo Manuel Francisco 提交于
      This patch add AIRcable USBto USB-HID blacklist, makes some little
      changes things in the Kconfig to make AIRcable USB look as all the rest
      of drivers. And it removes the readme part that was on
      Documentation/usb/usb-serial.txt because it is not needed anymore.
      
      
      Signed-off-by: Naranjo Manuel Francisco <naranjo.manuel@gmail.com
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      23b0d968
    • G
      hid-core: big-endian fix fix · 68717950
      Grant Grundler 提交于
      Adam Kropelin had posted 32-bit fix in June 2005 about two weeks after I
      originally had posted my fixes for big endian support.  Adam has a UPS
      device which reports LINEV using 32-bits.
      
      Added comments to describe the limitations of the code.
      
      extract() is the same version I posted earlier and tested in user space. 
      Made similar changes to implement() routine.  I've written (and will
      shortly post) a test for implement().  Code tested on C3600 (parisc) with
      USB keyboard/mouse attached.
      
      
      I've dropped test_implement.c and a few other user space test programs on
      http://iou.parisc-linux.org/~grundler/tests/
      
      -rw-r--r-- 1 grundler grundler 1750 Oct 18 09:13 test_extract.c
      -rw-r--r-- 1 grundler grundler  561 Jan 25  2006 test_ffs.c
      -rw-r--r-- 1 grundler users    7175 Apr  8  2005 test_fls.c
      -rw-r--r-- 1 grundler grundler  206 Sep  1 15:52 test_gettimeofday.c
      -rw-r--r-- 1 grundler grundler 1886 Oct 19 09:20 test_implement.c
      -rw-r--r-- 1 grundler users    2707 Jun  4  2005 test_unaligned.c
      
      I would appreciate if someone else would look at the output of
      test_implement.c to make it does The Right Thing.
      Signed-off-by: NGrant Grundler <grundler@parisc-linux.org>
      Cc: Matthew Wilcox <matthew@wil.cx>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Acked-By: NAdam Kropelin <akropel1@rochester.rr.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      68717950
  17. 18 10月, 2006 2 次提交
    • B
      [hid-core] TurboX Keyboard needs NOGET quirk. · d57cdcff
      Ben Collins 提交于
      Signed-off-by: NBen Collins <bcollins@ubuntu.com>
      d57cdcff
    • G
      USB: input: extract() and implement() are bit field manipulation routines · 4550718f
      Grant Grundler 提交于
      extract() and implement() have brain damaged attempts to handle 32-bit wide
      "fields".
      
      The problem is the index math in the original code didn't clear all the
      relevant bits.  (offset >> 5) only compensated for 32-bit index.  We need
      (offset >> 6) if we want to use 64-bit loads.
      
      But it was also wrong in that it tried to use quasi-aligned loads.  Ie
      "report" was only incremented in multiples of 4 bytes and then the offset
      was masked off for values greater than 4 bytes.  The right way is to
      pretend "report" points at a byte array.  And offset is then only minor
      adjustment for < 8 bits of offset.  "n" (field width) can then be as big as
      24 (assuming 32-bit loads) since "offset" will never be bigger than 7.
      
      If someone needs either function to handle more than 24-bits, please
      document why - point at a specification or specific USB hid device - in
      comments in the code.
      
      extract/implement() are also an eyesore to read.  Please banish whoever
      wrote it to read CodingStyle 3 times in a row to a classroom full of 1st
      graders armed with rubberbands.  Or just flame them.  Whatever.  Globbing
      all the code together on two lines does NOT make it faster and is Just
      Wrong.
      
      I've tested this patch on j6000 (dual 750Mhz PA-RISC, 32-bit 2.6.12-rc5). 
      Kyle McMartin tested on c3000 (up 400Mhz PA-RISC, same kernel).  "p2-mate"
      (Peter De Schrijver?) tested on sb1250 (dual core Mips, broadcom "swarm"
      eval board).
      Signed-off-by: NGrant Grundler <grundler@parisc-linux.org>
      Signed-off-by: NMatthew Wilcox <matthew@wil.cx>
      Cc: Vojtech Pavlik <vojtech@suse.cz>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      4550718f