1. 31 1月, 2009 1 次提交
  2. 04 1月, 2009 3 次提交
  3. 27 10月, 2008 1 次提交
  4. 22 10月, 2008 1 次提交
  5. 15 10月, 2008 28 次提交
  6. 23 7月, 2008 1 次提交
  7. 20 5月, 2008 2 次提交
    • A
      HID: remove CVS keywords · f8dea7a3
      Adrian Bunk 提交于
      This patch removes CVS keywords that weren't updated for a long time
      from comments.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      f8dea7a3
    • D
      HID: split Numlock emulation quirk from HID_QUIRK_APPLE_HAS_FN. · 6e704599
      Diego 'Flameeyes' Petteno 提交于
      Since 2.6.25 the HID_QUIRK_APPLE_HAS_FN quirk is enabled even for
      non-laptop Apple keyboards of the Aluminium series. The USB version of
      these don't need Numlock emulation, like the laptop (and Aluminium
      Wireless) do, as they have a proper keypad.
      
      This patch splits the Numlock emulation for Apple keyboards in a
      different quirk flag, so that it can be enabled for all the keyboards
      but the Aluminium USB ones.
      
      If the Numlock emulation is enabled for Aluminium USB keyboards, the
      JKL and UIO keys become the numeric pad, and the rest of the keyboard
      is disabled, included the key used to disable Numlock.
      
      Additionally, these keyboard should not have a Numlock at all, as the
      Numlock key is instead replaced by the 'Clear' key as usual for Apple
      USB keyboards.
      Signed-off-by: NDiego 'Flameeyes' Petteno <flameeyes@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      6e704599
  8. 29 4月, 2008 1 次提交
  9. 22 4月, 2008 2 次提交
    • O
      HID: fix race between open() and disconnect() in usbhid · 69626f23
      Oliver Neukum 提交于
      There is a window:
      
      task A					task B
      spin_lock_irq(&usbhid->inlock);	/* Sync with error handler */
      usb_set_intfdata(intf, NULL);
      spin_unlock_irq(&usbhid->inlock);
      usb_kill_urb(usbhid->urbin);
      usb_kill_urb(usbhid->urbout);
      usb_kill_urb(usbhid->urbctrl);
      
      del_timer_sync(&usbhid->io_retry);
      cancel_work_sync(&usbhid->reset_work);
      
      						if (!hid->open++) {
      							res = usb_autopm_get_interface(usbhid->intf);
      							if (res < 0) {
      								hid->open--;
      								return -EIO;
      							}
      						}
      						if (hid_start_in(hid))
      
      if (hid->claimed & HID_CLAIMED_INPUT)
      	hidinput_disconnect(hid);
      
      in which an open() to an already disconnected device will submit an URB
      to an undead device. In case disconnect() was called by an ioctl, this'll
      oops. Fix by introducing a new flag and checking it in hid_start_in().
      Signed-off-by: NOliver Neukum <oneukum@suse.de>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      69626f23
    • A
      HID: make hid_input_field and usbhid_modify_dquirk static · abdff0f7
      Adrian Bunk 提交于
      This patch makes the following needlessly global functions static:
      - hid-core.c:hid_input_field()
      - usbhid/hid-quirks.c:usbhid_modify_dquirk()
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      abdff0f7