09 Aug, 2008
1 commit
-
This driver adds support for the multitouch trackpad on the new
Apple Macbook Air and Macbook Pro Penryn laptops. It replaces the
appletouch driver on those computers, and integrates well with the
synaptics driver of the Xorg system.[dtor@mail.ru: various cleanups]
Signed-off-by: Henrik Rydberg
Signed-off-by: Dmitry Torokhov
23 Jul, 2008
18 commits
-
In drivers/hid/hid-input.c, the apple_fn_keys translation table
contains no entries for the F5 and F6 keys. This patch maps the F5 and
F6 keys to KBDILLUMDOWN and KBDILLUMUP, respektively, which make them
work as keyboard backlight control keys.Signed-off-by: Henrik Rydberg
Signed-off-by: Jiri Kosina -
This patch completely removes the dependency of usbkbd and usbmouse drivers
on usbhid code.usbkbd/usbmouse drivers are not needed in the vast majority of cases anyway,
and they shouldn't be loaded in standard configurations at all. They are supposed
to be as trivial as possible, and searching for HID_QUIRK_IGNORE can even be
bad in some cases.Signed-off-by: Jiri Kosina
-
Signed-off-by: Dmitry Torokhov
Signed-off-by: Jiri Kosina -
This adds in a quirk for the additional un-mapped buttons on the
gyration MCE remote.Defines are now alphabetical.
Signed-off-by: Daniel Walker
Signed-off-by: Jiri Kosina -
This patch is based on one provided by Jiri Kosina to handle the sleep
button. I just added some cleanup and integrated it into my series.Signed-off-by: Daniel Walker
Signed-off-by: Jiri Kosina -
Logitech DiNovo desktop needs the same quirk as other DiNovo
devices.Reported-by: Farid Benamrouche
Signed-off-by: Jiri Kosina -
When usbmouse/kbd is set to build, USB_HID is never defined due to
the USB_HID!=y Kconfig rule. Test CONFIG_USB_HID_MODULE in both
drivers instead.Signed-off-by: Jiri Slaby
Signed-off-by: Jiri Kosina -
hidraw_release() forgot to free the linked list structure, causing memory
leak.Reported-by: Juan Marcos Diez Esteban
Signed-off-by: Jiri Kosina -
Some Logitech mice have a tilt wheel which register as HWHEEL buttons.
The events are positive for a click to the right and negative for a
click to the left. Applications expect the opposite, though.I suspect this affects a lot more Logitech mice, but these are the only
two I have. I tested this using evtest and a GTK application. A similar
Microsoft Intellimouse I have works correctly.Signed-off-by: Dan Nicholson
Signed-off-by: Jiri Kosina -
mark it as const because it is read only
Signed-off-by: Ming Lei
Signed-off-by: Jiri Kosina -
Added device ids to hid-quriks for detection of keyboards on 4th
generation Macbook Pro and Macbook AirThe naming scheme is consistent with past Apple keyboards in hid-quirks;
as defined by Apple (including device ids) in:
/System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/Co
ntents/Info.plist
Patch was originally posted and tested at:
https://bugs.launchpad.net/mactel-support/+bug/207127Signed-off-by: Alexandre Karpenko
Signed-off-by: Andrew Morton
Signed-off-by: Jiri Kosina -
Remove unused inode variable from hiddev compat ioctl handler.
Signed-off-by: Jiri Kosina
-
Fix build failure introduced by Alan's ioctl -> unlocked_ioctl
(pushing BKL down to the driver) conversion patch for hiddev.Signed-off-by: Jiri Kosina
-
In this case I simply wrapped it as code review suggests the locking
already terminally broken and I didn't want to make it first. See added
commentSigned-off-by: Alan Cox
Signed-off-by: Jiri Kosina -
Push down the BKL. In some cases compat_ioctl already doesn't take the
BKL so we don't either. Some of the locking here seems already dubious
and object lifetimes want documentingSigned-off-by: Alan Cox
Signed-off-by: Jiri Kosina -
Signed-off-by: Harvey Harrison
Signed-off-by: Andrew Morton
Signed-off-by: Jiri Kosina
22 Jul, 2008
3 commits
-
device_create() is race-prone, so use the race-free
device_create_drvdata() instead as device_create() is going away.Signed-off-by: Jiri Kosina
Signed-off-by: Greg Kroah-Hartman -
This patch renames the existing usb_reset_device in hub.c to
usb_reset_and_verify_device and renames the existing
usb_reset_composite_device to usb_reset_device. Also the new
usb_reset_and_verify_device does't need to be EXPORTED .The idea of the patch is that external interface driver
should warn the other interfaces' driver of the same
device before and after reseting the usb device. One interface
driver shoud call _old_ usb_reset_composite_device instead of
_old_ usb_reset_device since it can't assume the device contains
only one interface. The _old_ usb_reset_composite_device
is safe for single interface device also. we rename the two
functions to make the change easily.This patch is under guideline from Alan Stern.
Signed-off-by: Ming Lei
-
From the current implementation of usb_reset_composite_device
function, the iface parameter is no longer useful. This function
doesn't do something special for the iface usb_interface,compared
with other interfaces in the usb_device. So remove the parameter
and fix the related caller.Signed-off-by: Ming Lei
Acked-by: Alan Stern
Signed-off-by: Greg Kroah-Hartman
15 Jul, 2008
1 commit
21 Jun, 2008
1 commit
-
Signed-off-by: Jonathan Corbet
04 Jun, 2008
1 commit
20 May, 2008
4 commits
-
This patch removes CVS keywords that weren't updated for a long time
from comments.Signed-off-by: Adrian Bunk
Signed-off-by: Jiri Kosina -
The new iMON LCDs from SoundGraph need to be blacklisted from HID in order to
be used by lirc.Signed-off-by: Dylan R Semler
Signed-off-by: Jiri Kosina -
Microchip PICkit 1 and PICKit 2 USB Programmers are USB HID class of device but
they are not real HID device. They are now supported by libusb based programs
like the following programs.pk2 and pk2cmd Linux port:
http://home.pacbell.net/theposts/picmicro/
usb_pickit:
http://tfc.duke.free.fr/pickit.html
usb_pickit original version:
http://charm.cs.uiuc.edu/users/olawlor/projects/2003/microchip/Therefore it ispreferred to blacklist them.
Signed-off-by: Xiaofan Chen
Signed-off-by: Jiri Kosina -
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: Diego 'Flameeyes' Petteno
Signed-off-by: Jiri Kosina
06 May, 2008
1 commit
29 Apr, 2008
2 commits
-
Signed-off-by: Harvey Harrison
Acked-by: Jiri Kosina
Cc: Al Viro
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
usb_control_msg() converts arguments to little-endian itself,
doing that in caller means breakage on big-endian boxen.Signed-off-by: Al Viro
Signed-off-by: Linus Torvalds
26 Apr, 2008
1 commit
-
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (40 commits)
Input: wacom - add support for Cintiq 20WSX
Input: ucb1400_ts - IRQ probe fix
Input: at32psif - update MODULE_AUTHOR with new email
Input: mac_hid - add lockdep annotation to emumousebtn
Input: i8042 - fix incorrect usage of strncpy and strncat
Input: bf54x-keys - add infrastructure for keypad wakeups
Input: add MODULE_ALIAS() to hotpluggable platform modules
Input: drivers/char/keyboard.c - use time_after
Input: fix ordering in joystick Makefile
Input: wm97xx-core - support use as a wakeup source
Input: wm97xx-core - use IRQF_SAMPLE_RANDOM
Input: wm97xx-core - only schedule interrupt handler if not already scheduled
Input: add Zhen Hua driver
Input: aiptek - add support for Genius G-PEN 560 tablet
Input: wacom - implement suspend and autosuspend
Input: xpad - set proper buffer length for outgoing requests
Input: omap-keypad - fix build warning
Input: gpio_keys - irq handling cleanup
Input: add PS/2 serio driver for AVR32 devices
Input: put ledstate in the keyboard notifier
...
23 Apr, 2008
1 commit
-
Fix a typo in report descriptor fixup, which results in improper
substitution and leaving old value in place.Reported-by: Juha Motorsportcom
Signed-off-by: Jiri Kosina
22 Apr, 2008
6 commits
-
Samsung USB remotes (0419:0001) report six keys via standard HID usage pages
(arrow keys, OK, Power). Kernel 2.6.25 maps those to input events (in addition
to the hiddev report). The remaining 43 keys are reported via proprietary HID
report page and therefore by hiddev only.Applications using hiddev and input device might process the 6 standard keys
twice. To avoid this, the input device will be suppressed for the Samsung
remote with a quirk entry, forcing to use the hiddev device only.LIRC already contains the proper support.
Signed-off-by: Robert Schedel
Signed-off-by: Jiri Kosina -
Jeremy Robertson reports that GTCO engineers made a mistake and we don't
need 0x60x GTCO product ids blacklisted.This mostly reverts dda3fd35, but leaves PID 0x1007 intact.
Reported-by: Jeremy Roberson
Signed-off-by: Jiri Kosina -
WiseGroup Ltd, MP-8866 Dual Joypad needs to skip output reports,
as it contains force-feedback output reports.Reported-by: Anssi Hannula
Signed-off-by: Jiri Kosina -
There is no need to keep a few years old ThrustMaster force-feedback
driver as experimental.HID_FF is currently marked experimental anyway, so this is even redundant.
Signed-off-by: Jiri Kosina
-
Logitech diNovo Mini needs DUPLICATE_USAGES quirk.
Reported-by: Tom Horsley
Signed-off-by: Jiri Kosina -
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: Oliver Neukum
Signed-off-by: Jiri Kosina