aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/mouse
AgeCommit message (Collapse)AuthorFilesLines
2007-03-10Input: psmouse - allow disabing certain protocol extensionsAndres Salomon10-59/+195
Allow ALPS, LOGIPS2PP, LIFEBOOK, TRACKPOINT and TOUCHKIT protocol extensions of psmouse to be disabled during compilation. This will allow users save some memory when they are sure that they will only use a certain type of mice. Signed-off-by: Andres Salomon <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-07Input: psmouse - do not force stream modeDmitry Torokhov1-6/+0
Forcing stream mode after reset confuses some devices (reported by Andrea Arcangeli) so let's take it out - spec says that after reset mouse should already be in stream mode. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-28Input: HIL - cleanup coding styleHelge Deller1-44/+49
Signed-off-by: Helge Deller <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-18Input: psmouse - add support for eGalax PS/2 touchscreen controllerStefan Lucke5-7/+139
Based on the touchkit USB and lifebook PS/2 touchscreen driver. The egalax touchsreen controller (PS/2 or USB version) is used in this 7" device: http://www.cartft.com/catalog/il/449 Signed-off-by: Michal Piotrowski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-18Input: remove obsolete setup parameters from input driversDmitry Torokhov3-10/+0
They have been marked as __obsolete_setup() for several years, it is time for them to go. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-18Input: psmouse - properly reset mouse on shutdown/suspendDmitry Torokhov3-0/+30
Some people report that they need psmouse module unloaded for suspend to ram/disk to work properly. Let's make port cleanup behave the same way as driver unload. This fixes "bad state" roblem on various HP laptops, such as nx7400. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-14[PATCH] remove many unneeded #includes of sched.hTim Schmielau1-1/+0
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: Tim Schmielau <[email protected]> Acked-by: Russell King <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-02-10Input: inport - use correct config option for ATIXLRobert P. J. Day1-1/+1
Change the apparently incorrect check for CONFIG_INPUT_ATIXL in a source file to be consistent with the kernel config option CONFIG_MOUSE_ATIXL. Signed-off-by: Robert P. J. Day <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-12-21Input: pc110pad - return proper errorAkinobu Mita1-1/+1
The driver should return -ENODEV rather than -ENOENT when it detects a PCI device in the box. Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-12-08Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6Dmitry Torokhov1-3/+4
Conflicts: drivers/usb/input/hid.h
2006-11-23Input: handle serio_register_driver() errorsAkinobu Mita4-8/+9
Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-11-22WorkStruct: make allyesconfigDavid Howells1-3/+4
Fix up for make allyesconfig. Signed-Off-By: David Howells <[email protected]>
2006-11-09Input: psmouse - fix attribute access on 64-bit systemsSergey Vlasov1-3/+6
psmouse_show_int_attr() and psmouse_set_int_attr() were accessing unsigned int fields as unsigned long, which gave garbage on x86_64. Signed-off-by: Sergey Vlasov <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-11-05Input: mice - handle errors when registering input devicesDmitry Torokhov8-60/+154
Signed-off-by: Dmitry Torokhov <[email protected]>
2006-11-02Input: logips2pp - handle sysfs errorsJeff Garzik1-2/+9
Signed-off-by: Jeff Garzik <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-11-02Input: trackpoint - handle sysfs errorsJeff Garzik1-2/+10
Also use kzalloc instead of kcalloc since we are allocating single object. Signed-off-by: Jeff Garzik <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-11-02Input: lifebook - learn about hard tabsAndrew Morton1-45/+43
Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-11-02Input: lifebook - add Hitachi Flora-IE 55mi tablet DMI signatureGreg Chandler1-0/+6
This adds another DMI detected touchscreen. It is exactly the same driver as the existing ones, but this allows it to be detected on the Hitachi Flora-IE 55mi tablet. The original Midori drivers are "abeo antiquus". This should allow new life for these machines. Signed-off-by: Dmitry Torokhov <[email protected]>
2006-10-09[PATCH] m68k/HP300: Enable HIL configuration optionsGeert Uytterhoeven1-1/+1
Enable HIL configuration options on HP300 Signed-off-by: Kars de Jong <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-06Build fixes for struct pt_regs removalMatthew Wilcox1-1/+1
Signed-off-by: Matthew Wilcox <[email protected]>
2006-10-05IRQ: Maintain regs pointer globally rather than passing to IRQ handlersDavid Howells14-70/+43
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: David Howells <[email protected]> (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
2006-09-19Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6Dmitry Torokhov3-27/+35
2006-09-10Input: constify psmouse driverHelge Deller6-32/+40
Signed-off-by: Helge Deller <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-08-23Input: psmouse - fix Intellimouse 4.0 initializationPozsar Balazs1-7/+0
Revert the superfluous initilization causing some mice become jumpy. Signed-off-by: Pozsar Balazs <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-08-08Input: logips2pp - add sugnature 56 (Cordless MouseMan Wheel), cleanupHelge Deller1-11/+12
Signed-off-by: Helge Deller <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-08-04Input: trackpoint - activate protocol when resumingDmitry Torokhov1-18/+34
Trackpoint driver was not sending the magic knock sequence upon resume causing incorrect device behavior after resuming from disk. Signed-off-by: Dmitry Torokhov <[email protected]>
2006-08-04Input: logips2pp - fix button mapping for MX300Roberto Castagnola1-2/+1
MX300 does not have an EXTRA_BTN - it is a simple wheel mouse with an additional task-switcher button, which is reported as side button (and not task button). Signed-off-by: Daniel Drake <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-07-02[PATCH] irq-flags: misc drivers: Use the new IRQF_ constantsThomas Gleixner1-1/+1
Signed-off-by: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-06-30Remove obsolete #include <linux/config.h>Jörn Engel3-3/+0
Signed-off-by: Jörn Engel <[email protected]> Signed-off-by: Adrian Bunk <[email protected]>
2006-06-26Input: psmouse - add support for Intellimouse 4.0Pozsar Balazs1-3/+30
Add support for the H-Wheel present on Microsoft Intellimouse 4.0 (AKA "tilt mouse") Signed-off-by: Pozsar Balazs <[email protected]> Signed-off-by: Vojtech Pavlik <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-06-26Input: fix potential overflows in driver/input/mouseDmitry Torokhov4-14/+18
Change all sprintfs into snprintfs to make sure we won't stomp on data adjacent to our buffers. Noticed by Wouter Paesen <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-05-29Input: psmouse - DMI updates for lifebook protocolKenan Esau1-0/+24
Added different lifebook-versions and the CF-18 to the corresponding dmi-table. Signed-off-by: Kenan Esau <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-05-29Input: alps - fix old protocol decodingYotam Medini1-2/+2
Correct touchpad left & right keys assignments for ALPS_OLDPROTO that were swapped. Old protocol is used on UMAX ActionBook-530T notebook. Signed-off-by: Yotam Medini <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-05-29Input: psmouse - add detection of Logitech TrackMan Wheel trackballZbigniew Luszpinski1-0/+6
Signed-off-by: Dmitry Torokhov <[email protected]>
2006-04-29Input: psmouse - fix new device detection logicDmitry Torokhov1-1/+3
Signed-off-by: Dmitry Torokhov <[email protected]>
2006-04-02Input: synaptics - limit rate to 40pps on Toshiba Protege M300Richard Thrippleton1-2/+9
Toshiba Protege M300 also requires the same workaround as Satellites and Dynabooks - Synaptics report rate should be lowered to 40pps (from 80), otherwise KBC starts losing keypresses. Signed-off-by: Richard Thrippleton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-04-02Manual merge with Linus.Dmitry Torokhov1-41/+47
Conflicts: arch/powerpc/kernel/setup-common.c drivers/input/keyboard/hil_kbd.c drivers/input/mouse/hil_ptr.c
2006-03-30[PARISC] Fix double free when removing HIL driversKyle McMartin1-2/+1
On Thu, Mar 30, 2006 at 08:31:02AM -0500, Dmitry Torokhov wrote: > Don't do that, its double free. input_unregister_device() normally > causes release() to be called and free the device. input_free_device > is only to be called when input_register_device has not been called or > failed. > > Plus you might want to unregister device after closing serio port, > otherwise your interrupt routine might be referencing already freed > memory. Signed-off-by: Kyle McMartin <[email protected]>
2006-03-30[PARISC] Convert HIL drivers to use input_allocate_deviceHelge Deller1-43/+48
Convert HIL drivers to use input_allocate_device() - avoids crashes. Signed-off-by: Helge Deller <[email protected]> Signed-off-by: Kyle McMartin <[email protected]>
2006-03-14Input: use kzalloc() throughout the codeEric Sesterhenn2-8/+6
Signed-off-by: Eric Sesterhenn <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-03-13Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6Dmitry Torokhov1-1/+1
2006-03-10[PATCH] Input: psmouse - disable autoresyncDmitry Torokhov1-1/+1
Automatic resynchronization in psmouse driver causes problems on some hardware so disable it by default for now. People with KVM switches that require resync can still enable it via module parameter or sysfs attribute. Signed-off-by: Dmitry Torokhov <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-02-19Input: psmouse - semaphore to mutex conversionIngo Molnar1-18/+20
The conversion was generated via scripts, and the result was validated automatically via a script as well. Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-02-15Input: trackpoint - enable devices connected to external portDmitry Torokhov2-8/+16
Signed-off-by: Dmitry Torokhov <[email protected]>
2006-02-15Input: logips2pp - add new signature (99)Meelis Roos1-0/+1
Add Logitech mouse type 99 (Premium Optical Wheel Mouse, model M-BT58, plain 3 buttons + wheel) to cure the following message: logips2pp: Detected unknown logitech mouse model 99 Signed-off-by: Meelis Roos <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-01-29Input: psmouse - set name for Genius miceDmitry Torokhov1-0/+1
Signed-off-by: Dmitry Torokhov <[email protected]>
2006-01-14Merge master.kernel.org:/pub/scm/linux/kernel/git/dtor/inputLinus Torvalds5-66/+301
2006-01-14Input: psmouse - attempt to re-synchronize mouse every 5 secondsDmitry Torokhov5-66/+301
This should help driver to deal vith KVMs that reset mice when switching between boxes. Signed-off-by: Dmitry Torokhov <[email protected]>
2006-01-12[PATCH] m68k: namespace pollution fix (custom->amiga_custom)Al Viro1-3/+3
in amigahw.h custom renamed to amiga_custom, in drivers with few instances the same replacement, in the rest - #define custom amiga_custom in driver itself Signed-off-by: Al Viro <[email protected]> Cc: Roman Zippel <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-01-10Input: remove obsolete maple input driversPaul Mundt3-112/+0
These haven't worked in some time, and we've dropped support for the bus from the SH tree until someone shows some interest in maintaining it. Signed-off-by: Paul Mundt <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>