aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-02-02Input: serio - clear pending rescans after sysfs driver rebindDuncan Laurie1-4/+7
When rebinding a serio driver via sysfs drvctl interface it is possible for an interrupt to trigger after the disconnect of the existing driver and before the binding of the new driver. This will cause the serio interrupt handler to queue a rescan event which will disconnect the new driver immediately after it is attached. This change removes pending rescans from the serio event queue after processing the drvctl request but before releasing the serio mutex. Reproduction involves issuing a rebind of device port from psmouse driver to serio_raw driver while generating input to trigger interrupts. Then checking to see if the corresponding i8042/serio4/driver is correctly attached to the serio_raw driver instead of psmouse. Signed-off-by: Duncan Laurie <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-02-02Input: rotary_encoder - use proper irqflagsAlexander Stein1-2/+2
IORESOURCE_IRQ_* is wrong for irq_request, use the correct IRQF_* instead. Signed-off-by: Alexander Stein <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-31Input: wacom_w8001 - report resolution to userlandPing Cheng1-2/+11
Serial devices send both pen and touch data through the same logical port. Since we scaled touch to pen maximum, we use pen resolution for touch as well here. This is under the assumption that pen and touch share the same physical surface. In the case when a small physical dimensional difference occurs between pen and touch, we assume the tolerance for touch point precision is higher than pen and the difference is within touch point tolerance. A per-MT tool based resolution mechanism should be introduced if the above assumption does not hold true for the pen and touch devices any more. Signed-off-by: Ping Cheng <[email protected]> Reviewed-by: Henrik Rydberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-28Input: synaptics - retry failed resets when reconnectingAlexandre Peixoto Ferreira1-2/+11
On some machines, like Dell Studio XPS 16 (1640), touchpad fails to respond to the standard query after first reset but may start responding later, so let's repeat reset sequence several (3) times. Signed-off-by: Alexandre Peixoto Ferreira <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-28Input: synaptics - fix reconnect logic on MT devicesAlexandre Peixoto Ferreira1-6/+13
synaptics_set_advanced_gesture_mode() affect capabilities bits we should perform comparison after calling this function, otherwise they will never match and we will be forced to perform full reconnect. Signed-off-by: Alexandre Peixoto Ferreira <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-28Input: tegra-kbc - fix keymap entry for LeftMeta keyRakesh Iyer1-1/+1
Correct key mapping for Left Meta key. Signed-off-by: Rakesh Iyer <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-28Input: tegra-kbc - fix build errorRakesh Iyer1-2/+2
Fix build error introduced by variable name change. Signed-off-by: Rakesh Iyer <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-25Input: wacom - pass touch resolution to clients through input_absinfoPing Cheng1-2/+19
Also remove fake ABS_RX/ABS_RY "axes" that were used to report physical dimensions now that we have better way. Signed-off-by: Ping Cheng <[email protected]> Reviewed-by: Henrik Rydberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-24Input: wacom - add 2 Bamboo Pen and touch modelsPing Cheng1-0/+6
Reported-by: David Foley <[email protected]> Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-24Input: sysrq - ensure sysrq_enabled and __sysrq_enabled are consistentAndy Whitcroft3-2/+6
Currently sysrq_enabled and __sysrq_enabled are initialised separately and inconsistently, leading to sysrq being actually enabled by reported as not enabled in sysfs. The first change to the sysfs configurable synchronises these two: static int __read_mostly sysrq_enabled = 1; static int __sysrq_enabled; Add a common define to carry the default for these preventing them becoming out of sync again. Default this to 1 to mirror previous behaviour. Signed-off-by: Andy Whitcroft <[email protected]> Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-20Input: sparse-keymap - fix KEY_VSW handling in sparse_keymap_setupDmitry Torokhov1-0/+1
We were forgetting to set up device capabilities for KEY_VSW entries. Reported-by: Tapio Vihuri <[email protected]> Tested-by: Tapio Vihuri <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-20Input: tegra-kbc - add tegra keyboard driverRakesh Iyer4-0/+799
This patch adds support for the internal matrix keyboard controller for Nvidia Tegra platforms. Signed-off-by: Rakesh Iyer <[email protected]> Reviewed-by: Trilok Soni <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-20Input: gpio_keys - switch to using request_any_context_irqPhilippe Langlais1-3/+3
The driver does not require hardirq context and can work with threaded interrupts as well, so let's switch to request_any_context_irq which will select the context that is available for us. Signed-off-by: Philippe Langlais <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-20Input: serio - allow registered drivers to get status flagDavid Engraf1-4/+20
Parse and pass the status byte information to the registered serio drivers as well as the data bytes. Signed-off-by: David Engraf<[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-17Input: ct82710c - return proper error code for ct82c710_openDavidlohr Bueso1-3/+5
If request_irq() fails we should return the proper error instead of -1. Signed-off-by: Davidlohr Bueso <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-17Input: bu21013_ts - added regulator supportNaveen Kumar Gaddipati1-1/+34
Add regulator support in ROHM BU21013 touch panel driver. Signed-off-by: Naveen Kumar Gaddipati <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-17Input: bu21013_ts - remove duplicate resolution parametersNaveen Kumar Gaddipati2-6/+2
Remove duplicate display resolution parameters from platform data as one pair is quite enough. Signed-off-by: Naveen Kumar Gaddipati <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-17Input: tnetv107x-ts - don't treat NULL clk as an errorJamie Iles1-2/+3
We should use IS_ERR() when checking whether clk_get() succeeded or not since it returns errors by encoding error codes with ERR_PTR(). Signed-off-by: Jamie Iles <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-17Input: tnetv107x-keypad - don't treat NULL clk as an errorJamie Iles1-2/+3
We should use IS_ERR() when checking whether clk_get() succeeded or not since it returns errors by encoding error codes with ERR_PTR(). Signed-off-by: Jamie Iles <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-11Merge branch 'next' into for-linusDmitry Torokhov18-265/+624
2011-01-11Input: add SW_ROTATE_LOCK switch typeJekyll Lai1-0/+1
This switch is used to signal that user want to disable screen transitions from portrait to landscape mode and back. Signed-off-by: Jekyll Lai <[email protected]> Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-11Input: fix force feedback capability query exampleAlexander Stein1-1/+3
'features' is a bit array, not byte array Signed-off-by: Alexander Stein <[email protected]> Acked-by: Anssi Hannula <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-11Input: wacom_w8001 - add single-touch supportPing Cheng1-33/+149
Emulate single-touch compatible events for the 2-finger panels so that they can be used with single-touch legacy clients. Assign device ids as Wacom USB vendor ID and product ID. Name the device to reflect its specific features. Scale touch coordinates to pen maximum if pen supported. Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-10Input: add Austria Microsystem AS5011 joystick driverFabien Marteau4-0/+398
This is driver for EasyPoint AS5011 2 axis joystick chip. This chip is plugged on an I2C bus. Tested on ARM processor (i.MX27). Signed-off-by: Fabien Marteau <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-08Input: remove aaed2000 keyboard driverJamie Iles3-199/+0
The only platform using this driver (mach-aaec2000) is no longer in the kernel so remove the driver. Signed-off-by: Jamie Iles <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-08Input: i8042 - introduce 'notimeout' blacklist for Dell Vostro V13Jiri Kosina3-1/+27
i8042 controller present in Dell Vostro V13 errorneously signals spurious timeouts. Introduce i8042.notimeout parameter for ignoring i8042-signalled timeouts and apply this quirk automatically for Dell Vostro V13, based on DMI match. In addition to that, this machine also needs to be added to nomux blacklist. Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-06Input: cy8ctmg110_ts - Convert to dev_pm_opsMark Brown1-6/+9
There is a general move towards the use of dev_pm_ops rather than bus specific suspend APIs as this simplifies both the bus and PM core implementations. Convert the cy8ctmg110_ts driver over. Compile tested only. Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-06Input: migor_ts - convert to dev_pm_opsMark Brown1-4/+8
There is a general move towards the use of dev_pm_ops rather than bus specific suspend APIs as this simplifies both the bus and PM core implementations. Convert the migor_ts driver over. Compile tested only. Signed-off-by: Mark Brown <[email protected]> Acked-by: Magnus Damm <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-06Input: mcs5000_ts - convert to dev_pm_opsMark Brown1-7/+10
There is a general move towards the use of dev_pm_ops rather than bus specific suspend APIs as this simplifies both the bus and PM core implementations. Convert the mcs5000_ts driver over. Compile tested only. Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-06Input: eeti_ts - convert to dev_pm_opsMark Brown1-7/+9
There is a general move towards the use of dev_pm_ops rather than bus specific suspend APIs as this simplifies both the bus and PM core implementations. Convert the eeti_ts driver over. Compile tested only by me, but Sven Neumann reports that the new code works. Signed-off-by: Mark Brown <[email protected]> Tested-by: Sven Neumann <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-06Input: ad7879 - convert I2C to dev_pm_opsMark Brown1-7/+10
There is a general move towards the use of dev_pm_ops rather than bus specific suspend APIs as this simplifies both the bus and PM core implementations. Convert the ad7879-ts I2C support over. Compile tested only. Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-01-06Merge branch 'next' into for-linusDmitry Torokhov63-753/+3201
Conflicts: include/linux/input.h
2010-12-30Input: wacom_w8001 - support pen or touch only devicesPing Cheng1-12/+32
Not all penabled devices support touch. The same holds true for touch devices, so we should be setting up devices according to the results returned when we query the hardware. Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-12-27Input: wacom_w8001 - use __set_bit to set keybitsPing Cheng1-5/+5
This makes code safer and easier to read. Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-12-27Merge branch 'next' of ↵Dmitry Torokhov11-24/+168
git://git.kernel.org/pub/scm/linux/kernel/git/rydberg/input-mt into next
2010-12-27Input: bu21013_ts - fix misuse of logical operation in place of bitopDavid Sterba1-1/+1
Signed-off-by: David Sterba <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-12-27Input: i8042 - add Acer Aspire 5100 to the Dritek listPali Rohár1-0/+7
This patch adds notebook Acer Aspire 5100 to the list of Dritek HW. Acer Aspire 5100 needs Dritek keyboard extension to support all Fn keys. Signed-off-by: Pali Rohár <[email protected]> Tested-by: Pali Rohár <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-12-23Input: wacom - add support for digitizer in Lenovo W700Ajay Ramaswamy2-0/+8
Signed-off-by: Ajay Ramaswamy <[email protected]> Reviewed-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-12-23Input: psmouse - disable the synaptics extension on OLPC machinesAndres Salomon1-0/+30
OLPC has switched to a Synaptics touchpad. It turns out that it's pretty useless in absolute mode. This patch looks for an OLPC system (via DMI tables), and refuses to init Synaptics mode in that scenario (falling back to relative mode). Signed-off-by: Andres Salomon <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-12-23Input: psmouse - fix up Synaptics commentAndres Salomon1-2/+2
Minor comment fixup for typos and grammar. Noticed while adding a separate workaround. Signed-off-by: Andres Salomon <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-12-22Input: synaptics - ignore bogus mt packetHenrik Rydberg1-2/+2
In multitouch mode, at least one device (fw: 7.4 id: 0x1c0b1) sometimes sends a final main packet with x == 1. Since the normal values are above 1472, this is clearly bogus. At the same time, a two-finger touch is signaled, even though only one finger was on the pad to begin with. This patch ignores the packet altogether, removing the problem. Acked-by: Chris Bagwell <[email protected]> Acked-by: Chase Douglas <[email protected]> Acked-by: Dmitry Torokhov <[email protected]> Signed-off-by: Henrik Rydberg <[email protected]>
2010-12-21Input: synaptics - add multi-finger and semi-mt supportHenrik Rydberg2-3/+88
The Synaptics 2.7 series of touchpads support a mode for reporting two sets of X/Y/Pressure data (advanced gesture mode). By default, these devices report only single finger data, depriving userspace of the nowadays ubiquitous two-finger scroll gesture. Enabling advanced gesture mode also enables the multi-finger report, although the device does not claim that capability. Up to three fingers can be reported this way. While two or three fingers are touching, the normal packet is prepended by a reduced finger packet of lower resolution. From the two packets (which do not represent the actual fingers), the bounding rectangle of the individual contacts can be extracted. This information is sufficient to perform scaling gestures and a limited form of rotation gesture. The behavior has been coined semi-mt capability, and is signaled to userspace via the INPUT_PROP_SEMI_MT device property. Work to decode the advanced gesture packet: Takashi Iwai. Cleanup and testing of the original patch: Chase Douglas. Minor cleanup and testing: Chris Bagwell. Finalization and semi-mt support: Henrik Rydberg. Reported-by: Tobyn Bertram Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Chase Douglas <[email protected]> Signed-off-by: Chris Bagwell <[email protected]> Acked-by: Dmitry Torokhov <[email protected]> Signed-off-by: Henrik Rydberg <[email protected]>
2010-12-21Input: synaptics - report clickpad propertyHenrik Rydberg1-0/+3
With the new input property interface, it is possible to report the special quirks of a device using ioctl/sysfs. This patch sets up the device as a pointer, and reports the clickpad functionality via the INPUT_PROP_BUTTONPAD property. Acked-by: Chase Douglas <[email protected]> Signed-off-by: Henrik Rydberg <[email protected]>
2010-12-20input: mt: Document interface updatesHenrik Rydberg1-18/+26
This patch documents the recent input-mt interface changes. Signed-off-by: Henrik Rydberg <[email protected]>
2010-12-20Input: fix double equality sign in ueventHenrik Rydberg1-1/+1
Looking at the uevent stream for input devices, all properties are on the form "A=B" except the bitmap values, which are on the form "A==B". This bug has been around at least since 2007, and the input uevent code has been untouched since. The recent addition of device properties suggests this is a good time for a remedy. Acked-by: Dmitry Torokhov <[email protected]> Signed-off-by: Henrik Rydberg <[email protected]>
2010-12-20Input: introduce device propertiesHenrik Rydberg5-0/+44
Today, userspace sets up an input device based on the data it emits. This is not always enough; a tablet and a touchscreen may emit exactly the same data, for instance, but the former should be set up with a pointer whereas the latter does not need to. Recently, a new type of touchpad has emerged where the buttons are under the pad, which changes logic without changing the emitted data. This patch introduces a new ioctl, EVIOCGPROP, which enables user access to a set of device properties useful during setup. The properties are given as a bitmap in the same fashion as the event types, and are also made available via sysfs, uevent and /proc/bus/input/devices. Acked-by: Ping Cheng <[email protected]> Acked-by: Chase Douglas <[email protected]> Acked-by: Dmitry Torokhov <[email protected]> Signed-off-by: Henrik Rydberg <[email protected]>
2010-12-18hid: egalax: Add support for Wetab (726b)Andy Ross3-0/+4
This patch adds support for another Wetab device (726b), and grabs it accordingly in hid-core. [[email protected]: rename and log message changes] Signed-off-by: Andy Ross <[email protected]> Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Henrik Rydberg <[email protected]>
2010-12-16Merge branch 'next' of ↵Dmitry Torokhov17-216/+329
git://git.kernel.org/pub/scm/linux/kernel/git/rydberg/input-mt into next Conflicts: drivers/input/Makefile
2010-12-16Input: include MT library as source for kerneldocDmitry Torokhov1-0/+4
Signed-off-by: Dmitry Torokhov <[email protected]> Signed-off-by: Henrik Rydberg <[email protected]>
2010-12-16MAINTAINERS: Update input-mt entryHenrik Rydberg1-0/+2
The input multitouch core is now located in its own file, and maintained via a git tree. Update the maintainers entry accordingly. Signed-off-by: Henrik Rydberg <[email protected]>