aboutsummaryrefslogtreecommitdiff
path: root/drivers/input
AgeCommit message (Collapse)AuthorFilesLines
2010-01-11Input: i8042 - add Dritek quirk for Acer Aspire 5610.Elliott Sales de Andrade1-0/+7
Signed-off-by: Elliott Sales de Andrade <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-09Input: xbox - do not use GFP_KERNEL under spinlockDmitry Torokhov1-2/+2
xbox_play_effect() is called while holding dev->event_lock with interrupts disabled and thus may not use GFP_KERNEL when submitting urbs. Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-09Input: xen-kbdfront - make xenbus device ids constantMárton Németh1-1/+1
The ids field of the struct xenbus_device_id is constant in <linux/xen/xenbus.h> so it makes sense to mark xenkbd_ids also constant. Signed-off-by: Márton Németh <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-09Input: ns558 - make pnp device ids constantMárton Németh1-1/+1
The id_table field of the struct pnp_driver is constant in <linux/pnp.h> so it makes sense to mark pnp_devids also constant. Signed-off-by: Márton Németh <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-09Input: make PCI device ids constantMárton Németh3-3/+3
The id_table field of the struct pci_driver is constant in <linux/pci.h> so it makes sense to mark initialization data also constant. Signed-off-by: Márton Németh <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-09Input: xilinx_ps2 - make Open Firmware device ids constantMárton Németh1-1/+1
The match_table field of the struct of_device_id is constant in <linux/of_platform.h> so it makes sense to mark xps2_of_match also constant. Signed-off-by: Márton Németh <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-09Input: make i2c device ids constantMárton Németh3-3/+3
The id_table field of the struct i2c_driver is defined as constant in <linux/i2c.h> so it makes sense to mark the initialization data also constant. Signed-off-by: Márton Németh <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-07Input: psmouse - fix Synaptics detection when protocol is disabledDaniel Drake3-1/+19
For configurations where Synaptics hardware is present but the Synaptics extensions support is not compiled in, the mouse is reprobed and a new device is allocated on every suspend/resume. During probe, psmouse_switch_protocol() calls psmouse_extensions() with set_properties=1. This calls the dummy synaptics_init() which returns an error code, instructing us not to use the synaptics extensions. During resume, psmouse_reconnect() calls psmouse_extensions() with set_properties=0, in which case call to synaptics_init() is bypassed and PSMOUSE_SYNAPTICS is returned. Since the result is different from previous attempt psmouse_reconnect() fails and full re-probe happens. Fix this by tweaking the set_properties=0 codepath in psmouse_extensions() to be more careful about offering PSMOUSE_SYNAPTICS extensions. Signed-off-by: Daniel Drake <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: elo - switch to using dev_xxx() when printing messagesDmitry Torokhov1-105/+120
Also fix formatting of "switch" statements. Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: atkbd - switch to dev_err() and friendsDmitry Torokhov1-137/+146
dev_err(), dev_warn() and dev_dbg() ensure consistency in driver messages. Also switch to using bool where appropriate and fix some formatting issues. Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: bcm5974 - report ABS_MT eventsHenrik Rydberg1-1/+43
Make bcm5974 report raw multi-touch (MT) data in the form of ABS_MT events. [[email protected]: get rid of module option, always report all events] Signed-off-by: Henrik Rydberg <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: psmouse - remove unused 'autocal' parameter from hgpk protocolDmitry Torokhov1-4/+0
Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: cleanse capabilities bits before registering deviceDmitry Torokhov1-0/+22
To avoid showing garbage in capability bits, zero out bitmasks absent from dev->evbit in case driver inadvertently leaves some garbage there. Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: automatically reset KEY_RESERVED bit for all input devicesDmitry Torokhov1-4/+10
KEY_RESERVED is not supposed to be reported to userspace but rather to mark unused entries in keymaps. Acked-by: Henrique de Moraes Holschuh <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: gameport - switch to using pr_xxx() and dev_xxx()Dmitry Torokhov1-34/+28
pr_xxx() and dev_xxx() helpers ensure that all messages emitted by the module have consistent prefixes, so let's use them. Also fix some formatting issues. Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: gameport - make use of list_first_entry() helperDmitry Torokhov1-19/+11
Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: gameport - let device core tell us if device was registeredDmitry Torokhov1-5/+1
No need to keep track of it by ourselves. Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: serio - use pr_xxx() and dev_xxx() helpersDmitry Torokhov1-42/+35
pr_xxx() and dev_xxx() helpers ensure that all messages emitted by the module have consistent prefixes, so let's use them. Also fix some formatting issues. Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: serio - use list_first_entry() helperDmitry Torokhov1-20/+11
Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: serio - let device core tell us if device was registeredDmitry Torokhov1-6/+2
No need to keep track of it by ourselves. Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: serio - use device core to create 'id' attribute groupDmitry Torokhov1-8/+9
Instead of creating 'id' sysfs attribute group by ourselves rely on device core to do that for us. Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: davinci_keyscan - add device_enable method to platform dataMiguel Aguilar1-0/+8
Add a function pointer in the platform data of the DaVinci Keyscan driver called device_enable, in order to perform board specific actions when the device is initialized, like setup the PINMUX configuration. Signed-off-by: Miguel Aguilar <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: evdev - be less aggressive about sending SIGIO notifiesAdam Jackson1-1/+2
When using realtime signals, we'll enqueue one signal for every event. This is unfortunate, because (for example) keyboard presses are three events: key, msc scancode, and syn. They'll be enqueued fast enough in kernel space that all three events will be ready to read by the time userspace runs, so the first invocation of the signal handler will read all three events, but then the second two invocations still have to run to do no work. Instead, only send the SIGIO notification on syn events. This is a slight abuse of SIGIO semantics, in principle it ought to fire as soon as any events are readable. But it matches evdev semantics, which is more important since SIGIO is rather vaguely defined to begin with. Signed-off-by: Adam Jackson <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: atkbd - fix canceling event_work in disconnectDmitry Torokhov1-2/+8
We need to first unregister input device and only then cancel event work since events can arrive (and cause event work to get scheduled again) until input_unregister_device() returns. Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-06Input: serio - fix potential deadlock when unbinding driversEric W. Biederman2-63/+28
sysfs_remove_group() waits for sysfs attributes to be removed, therefore we do not need to worry about driver-specific attributes being accessed after driver has been detached from the device. In fact, attempts to take serio->drv_mutex in attribute methods may lead to the following deadlock: sysfs_read_file() fill_read_buffer() sysfs_get_active_two() psmouse_attr_show_helper() serio_pin_driver() serio_disconnect_driver() mutex_lock(&serio->drv_mutex); <--------> mutex_lock(&serio_drv_mutex); psmouse_disconnect() sysfs_remove_group(... psmouse_attr_group); .... sysfs_deactivate(); wait_for_completion(); Fix this by removing calls to serio_[un]pin_driver() and functions themselves and using driver-private mutexes to serialize access to attribute's set() methods that may change device state. Signed-off-by: Eric W. Biederman <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-01-01Input: gf2k - fix &&/|| confusion in gf2k_connect()Roel Kluin1-1/+1
This always evaluates to true. Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-31Merge branch 'for-linus' of ↵Linus Torvalds14-96/+94
git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: iforce - wait for command completion when closing the device Input: twl4030-pwrbutton - switch to using threaded IRQ Input: twl4030_keypad - switch to using threaded IRQ Input: lifebook - add CONFIG_DMI dependency Input: wistron - fix test for CONFIG_PM Input: psmouse - fix compile warning in hgpk module Input: matrix-keypad - handle cases when GPIOs can't be wakeup sources Input: iforce - fix oops on device disconnect Input: ff-memless - add notion of direction to for rumble effects Input: ff-memless - another fix for signed to unsigned overflow Input: ff-memless - start playing FF effects immediately Input: serio - do not mark kseriod freezable anymore Input: speed up suspend/shutdown for PS/2 mice and keyboards
2009-12-30Input: iforce - wait for command completion when closing the deviceDmitry Torokhov2-0/+4
We need to wait for the command to disable FF effects to complete before continuing with closing the device. Tested-by: Johannes Ebke <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-29Input: xpad - allow using triggers as buttons rather than axesNicolas Léveillé1-79/+121
Certain devices implement triggers as buttons rather than axes. In particular, arcade sticks such as the HORI Real Arcade Pro.EX do not have analog buttons. These devices are now setup to present buttons rather than axes for triggers. User-space applications often also have problems with axes-as-buttons. Activating MAP_TRIGGERS_TO_BUTTONS for a device removes the artificial difference between buttons and triggers. Signed-off-by: Nicolas Léveillé <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-29Input: twl4030-pwrbutton - switch to using threaded IRQFelipe Balbi1-12/+2
Signed-off-by: Felipe Balbi <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-29Input: twl4030_keypad - switch to using threaded IRQFelipe Balbi1-9/+2
Signed-off-by: Felipe Balbi <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-29Input: lifebook - add CONFIG_DMI dependencyDmitry Torokhov2-3/+1
Lifebook protocol can only be activated if we find known DMI signature. It is useles without DMI. Reported-by: Rakib Mullick <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-29Input: wistron - fix test for CONFIG_PMRakib Mullick1-1/+1
This should fix the following compile warning: drivers/input/misc/wistron_btns.c:1331:5: warning: "CONFIG_PM" is not defined Signed-off-by: Rakib Mullick <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-29Input: psmouse - fix compile warning in hgpk moduleRené Bolldorf1-1/+0
The variable 'dev' is unused in function 'hgpk_register'. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-24Input: matrix-keypad - handle cases when GPIOs can't be wakeup sourcesDmitry Torokhov1-7/+22
On certain boards not all GPIOs may be used as wakeup sources, in which case some of enable_irq_wake() calls will fail. On resume calling disable_irq_wake() will warn about unbalanced IRQ wake disable. Solve this by checking whether enable_irq_wake() succeeded or not and no not call disable_irq_wake() for these GPIOs/IRQs that have not been enabled. Reported-by: Pavel Machek <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-24Input: iforce - fix oops on device disconnectDmitry Torokhov3-44/+12
Do not try to free iforce device when we closing input device; disconnect is the only place where it should be deleted. Reported-by: Johannes Ebke <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-24Input: ff-memless - add notion of direction to for rumble effectsJari Vanhala1-0/+36
This adds simple direction calculation when combining effects. It's useful to decide motor direction for rumble (vibrator). Signed-off-by: Jari Vanhala <[email protected]> Acked-by: Anssi Hannula <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-24Input: ff-memless - another fix for signed to unsigned overflowDmitry Torokhov1-3/+3
The commit 9e68177ef93b2f34eee5a1e1707bceef4b9ba69c changed 'gain' from signed to unsigned to fix an issue with rumble effect calculation, however it introduced problems when calculating constant effects. Having 'gain' being unsigned int was an unfortunate choice since it dominates all implicit type conversions causing everything to be treated as unsigned int. Let's change it back to signed int and simply add proper casts to rumble effect calculations. Reported-by: Gary Stein <[email protected]> Acked-by: Anssi Hannula <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-24Input: ff-memless - start playing FF effects immediatelyJari Vanhala1-4/+2
Instead of waiting for the next timer tick to start playing an effect do it immediately. This mostly helps systems using low HZ setting. Signed-off-by: Jari Vanhala <[email protected]> Acked-by: Anssi Hannula <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-24Input: serio - do not mark kseriod freezable anymoreDmitry Torokhov1-9/+2
We used to make kseriod freezable to prevent unnecessary attempts at resuming keyboard and mouse before taking hibernation image when suspend and hibernation were sharing PM operations. Now that they are separated and we don't risk resuming during 'thaw' we don't need to freeze kseriod anymore. This will allow us to start resetting mouse and keyboard a bit earlier, before rest of the userspace comes back up. Acked-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-24Input: speed up suspend/shutdown for PS/2 mice and keyboardsDmitry Torokhov2-3/+7
Instead of doing full-blown reset while suspending or shutting down the box use lighter form of reset that should take less time. Tested-by: Alan Stern <[email protected]> Tested-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-16Merge branch 'for-linus' of ↵Linus Torvalds19-372/+1111
git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (22 commits) Input: ALPS - add interleaved protocol support (Dell E6x00 series) Input: keyboard - don't override beep with a bell Input: altera_ps2 - fix test of unsigned in altera_ps2_probe() Input: add mc13783 touchscreen driver Input: ep93xx_keypad - update driver to new core support Input: wacom - separate pen from express keys on Graphire Input: wacom - add defines for data packet report IDs Input: wacom - add support for new LCD tablets Input: wacom - add defines for packet lengths of various devices Input: wacom - ensure the device is initialized properly upon resume Input: at32psif - do not sleep in atomic context Input: i8042 - add Gigabyte M1022M to the noloop list Input: i8042 - allow installing platform filters for incoming data Input: i8042 - fix locking in interrupt routine Input: ALPS - do not set REL_X/REL_Y capabilities on the touchpad Input: document use of input_event() function Input: sa1111ps2 - annotate probe() and remove() methods Input: ambakmi - annotate probe() and remove() methods Input: gscps2 - fix probe() and remove() annotations Input: altera_ps2 - add annotations to probe and remove methods ...
2009-12-15Input: ALPS - add interleaved protocol support (Dell E6x00 series)Sebastian Kapfer2-27/+228
Properly handle version of the protocol where standard PS/2 packets from trackpoint are stuffed into middle (byte 3-6) of the standard ALPS packets when both the touchpad and trackpoint are used together. The patch is based on work done by Matthew Chapman and additional research done by David Kubicek and Erik Osterholm: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/296610 Many thanks to David Kubicek for his efforts in researching fine points of this new version of the protocol, especially interaction between pad and stick in these models. Signed-off-by: Sebastian Kapfer <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-15Input: altera_ps2 - fix test of unsigned in altera_ps2_probe()Roel Kluin1-3/+5
ps2if->irq is unsigned so the test does not work. Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-15Input: add mc13783 touchscreen driverSascha Hauer3-0/+271
This driver provides support for the touchscreen interface integrated into the Freescale MC13783. Signed-off-by: Sascha Hauer <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Acked-by: Luotao Fu <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-15Input: ep93xx_keypad - update driver to new core supportH Hartley Sweeten1-101/+49
This driver was merged before the ep93xx core support was added for the keypad clock and acquiring/releasing the necessary gpio's. Now that the proper support is in the ep93xx core this driver needs to be updated to work correctly. Summary of changes: 1) Remove some unused members from the platform data. 2) Remove the custom KEY macro and use the ones available in <linux/input/matrix_keypad.h> 3) Remove the keypad_{readl/writel} macros and just use __raw_{readl/writel} directly. 4) Update the clk_set_rate() call to work with the core support. 5) Cleanup the probe routine and remove some unneeded messages. 6) Use the ep93xx core functions to acquire and release the gpio's. 7) Fix the clk_get() call to get the keypad clock. Signed-off-by: H Hartley Sweeten <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-15const: constify remaining dev_pm_opsAlexey Dobriyan5-5/+5
Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-12-15Merge commit 'linus' into nextDmitry Torokhov16-21/+253
2009-12-15Input: wacom - separate pen from express keys on GraphirePing Cheng1-4/+23
Since Graphire/Bamboo devices report pen and expresskeys in the same data packet, we need to send a input_sync event to separate pen data from expresskeys for X11 driver to process them properly. Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-12-15Input: wacom - add defines for data packet report IDsPing Cheng2-13/+22
Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>