1. 09 12月, 2006 6 次提交
  2. 08 12月, 2006 1 次提交
  3. 02 12月, 2006 4 次提交
  4. 22 11月, 2006 1 次提交
  5. 17 11月, 2006 2 次提交
  6. 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
  7. 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
  8. 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
  9. 05 10月, 2006 1 次提交
    • D
      IRQ: Maintain regs pointer globally rather than passing to IRQ handlers · 7d12e780
      David Howells 提交于
      Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
      of passing regs around manually through all ~1800 interrupt handlers in the
      Linux kernel.
      
      The regs pointer is used in few places, but it potentially costs both stack
      space and code to pass it around.  On the FRV arch, removing the regs parameter
      from all the genirq function results in a 20% speed up of the IRQ exit path
      (ie: from leaving timer_interrupt() to leaving do_IRQ()).
      
      Where appropriate, an arch may override the generic storage facility and do
      something different with the variable.  On FRV, for instance, the address is
      maintained in GR28 at all times inside the kernel as part of general exception
      handling.
      
      Having looked over the code, it appears that the parameter may be handed down
      through up to twenty or so layers of functions.  Consider a USB character
      device attached to a USB hub, attached to a USB controller that posts its
      interrupts through a cascaded auxiliary interrupt controller.  A character
      device driver may want to pass regs to the sysrq handler through the input
      layer which adds another few layers of parameter passing.
      
      I've build this code with allyesconfig for x86_64 and i386.  I've runtested the
      main part of the code on FRV and i386, though I can't test most of the drivers.
      I've also done partial conversion for powerpc and MIPS - these at least compile
      with minimal configurations.
      
      This will affect all archs.  Mostly the changes should be relatively easy.
      Take do_IRQ(), store the regs pointer at the beginning, saving the old one:
      
      	struct pt_regs *old_regs = set_irq_regs(regs);
      
      And put the old one back at the end:
      
      	set_irq_regs(old_regs);
      
      Don't pass regs through to generic_handle_irq() or __do_IRQ().
      
      In timer_interrupt(), this sort of change will be necessary:
      
      	-	update_process_times(user_mode(regs));
      	-	profile_tick(CPU_PROFILING, regs);
      	+	update_process_times(user_mode(get_irq_regs()));
      	+	profile_tick(CPU_PROFILING);
      
      I'd like to move update_process_times()'s use of get_irq_regs() into itself,
      except that i386, alone of the archs, uses something other than user_mode().
      
      Some notes on the interrupt handling in the drivers:
      
       (*) input_dev() is now gone entirely.  The regs pointer is no longer stored in
           the input_dev struct.
      
       (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking.  It does
           something different depending on whether it's been supplied with a regs
           pointer or not.
      
       (*) Various IRQ handler function pointers have been moved to type
           irq_handler_t.
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
      7d12e780
  10. 29 9月, 2006 1 次提交
  11. 28 9月, 2006 4 次提交
  12. 23 9月, 2006 1 次提交
  13. 08 9月, 2006 1 次提交
    • A
      USB: hid-core.c: fix duplicate USB_DEVICE_ID_GTCO_404 · f0649024
      Adrian Bunk 提交于
      On Fri, Sep 01, 2006 at 01:58:18AM -0700, Andrew Morton wrote:
      >...
      > Changes since 2.6.18-rc4-mm3:
      >...
      > +gregkh-usb-hid-core.c-adds-all-gtco-calcomp-digitizers-and-interwrite-school-products-to-blacklist.patch
      >...
      >  USB tree updates.
      >...
      
      The GNU C compiler spotted the following bug:
      
      <--  snip  -->
      
      ...
        CC      drivers/usb/input/hid-core.o
      /home/bunk/linux/kernel-2.6/linux-2.6.18-rc5-mm1/drivers/usb/input/hid-core.c:1446:1: warning: "USB_DEVICE_ID_GTCO_404" redefined
      /home/bunk/linux/kernel-2.6/linux-2.6.18-rc5-mm1/drivers/usb/input/hid-core.c:1445:1: warning: this is the location of the previous definition
      ...
      
      <--  snip  -->
      
      This patch fixes this cut'n'paste error.
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      f0649024
  14. 01 9月, 2006 2 次提交
  15. 05 8月, 2006 1 次提交
  16. 19 7月, 2006 1 次提交
  17. 13 7月, 2006 1 次提交
  18. 22 6月, 2006 6 次提交
  19. 13 5月, 2006 1 次提交
  20. 15 4月, 2006 1 次提交