- Jul 03, 2009
-
-
Yoichi Yuasa authored
Signed-off-by:
Yoichi Yuasa <yuasa@linux-mips.org> Signed-off-by:
Ralf Baechle <ralf@linux-mips.org>
-
- Jun 19, 2009
-
-
Mike Rapoport authored
This driver supports Synaptics I2C touchpad controller on eXeda mobile device. Unfortunaltely it only works in relative mode and thus is not comaptible with Xorg Synaptics driver. Signed-off-by:
Igor Grinberg <grinberg@compulab.co.il> Signed-off-by:
Mike Rapoport <mike@compulab.co.il> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Tero Saarni authored
Synaptics uses anisotropic coordinate system. On some wide touchpads vertical resolution can be twice as high as horizontal which causes unequal sensitivity on x/y directions. Add support for reading the resolution with EVIOCGABS ioctl. Signed-off-by:
Tero Saarni <tero.saarni@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Jun 16, 2009
-
-
Arnd Bergmann authored
PIT_TICK_RATE is currently defined in four architectures, but in three different places. While linux/timex.h is not the perfect place for it, it is still a reasonable replacement for those drivers that traditionally use asm/timex.h to get CLOCK_TICK_RATE and expect it to be the PIT frequency. Note that for Alpha, the actual value changed from 1193182UL to 1193180UL. This is unlikely to make a difference, and probably can only improve accuracy. There was a discussion on the correct value of CLOCK_TICK_RATE a few years ago, after which every existing instance was getting changed to 1193182. According to the specification, it should be 1193181.818181... Signed-off-by:
Arnd Bergmann <arnd@arndb.de> Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Len Brown <lenb@kernel.org> Cc: john stultz <johnstul@us.ibm.com> Cc: Dmitry Torokhov <dtor@mail.ru> Cc: Takashi Iwai <tiwai@suse.de> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
-
- Jun 15, 2009
-
-
Greg Kroah-Hartman authored
In the near future, the driver core is going to not allow direct access to the driver_data pointer in struct device. Instead, the functions dev_get_drvdata() and dev_set_drvdata() should be used. These functions have been around since the beginning, so are backwards compatible with all older kernel versions. Cc: xen-devel@lists.xensource.com Cc: virtualization@lists.osdl.org Acked-by:
Chris Wright <chrisw@sous-sol.org> Cc: Jeremy Fitzhardinge <jeremy@xensource.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
-
Greg Kroah-Hartman authored
In the near future, the driver core is going to not allow direct access to the driver_data pointer in struct device. Instead, the functions dev_get_drvdata() and dev_set_drvdata() should be used. These functions have been around since the beginning, so are backwards compatible with all older kernel versions. Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: linux-input@vger.kernel.org Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
-
Kay Sievers authored
This adds support to the input core to report the proper device name to userspace for their devices. Signed-off-by:
Kay Sievers <kay.sievers@vrfy.org> Signed-off-by:
Jan Blunck <jblunck@suse.de> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
-
- Jun 12, 2009
-
-
Alessio Igor Bogani authored
Signed-off-by:
Alessio Igor Bogani <abogani@texware.it> Signed-off-by:
Jiri Kosina <jkosina@suse.cz>
-
- Jun 11, 2009
-
-
Linus Walleij authored
I found the PrimeCell/AMBA Bus drivers distrusting the resource passed in as part of the struct amba_device abstraction. This patch removes all hard coded resource sizes found in the PrimeCell drivers and move the responsibility of this definition back to the platform/board device definition, which already exist and appear to be correct for all in-tree users of these drivers. We do this using the resource_size() inline function which was also replicated in the only driver using the resource size, so that has been changed too. The KMI_SIZE was left in kmi.h in case someone likes it. Test-compiled against Versatile and Integrator defconfigs, seems to work but I don't posess these boards and cannot test them. Signed-off-by:
Linus Walleij <linus.walleij@stericsson.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
Ulrich Dangel authored
When pressing any button belonging to the touchpoint, the generated click events don't belong to the touchpoint but to the touchpad. This patch fixes this behaviour, the events will be sent via the correct device, so scrolling with touchpoint is possible. Signed-off-by:
Ulrich Dangel <uli@spamt.net> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Alek Du authored
The gpio_get_value function of I2C/SPI GPIO expander may sleep thus this function call can not be called in a timer function. Signed-off-by:
Alek Du <alek.du@intel.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Michael Roth authored
Some SoCs support only pin change interrupts on GPIO pins used as irq lines. The ads7846 core is not affected from the additional irqs on the rising edge because the code accounts touch bounce anyway by kicking in a timer and disabling the irq after the first request and reenabling the irq after a timeout when there is no longer pen down detected. Signed-off-by:
Michael Roth <mroth@nessie.de> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Wan ZongShun authored
The touchscreen works in two modes, wait trigger mode and auto-semi mode. The device starts in wait trigger mode and waits until pressure is detected, then device sets WT_INT bit and raises an interrupt. The driver should put the device into auto-semi mode and prepare for reading first X and then Y coordinates. When coordinate data is ready the driver sets ADC_INT bit and raises interrupt again. [dtor@mail.ru: various cleanups] Signed-off-by:
Wan ZongShun <mcuos.com@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Jun 03, 2009
-
-
Jeremy Huddleston authored
The appletouch driver is prone to reporting multiple fingers when only one is pressing. The appletouch driver queries an array of pressure sensors and counts local maxima in pressure to determine the number of fingers. It just does this on the raw values, so a data stream like: 0 100 250 300 299 300 250 100 0 actually registers as 2 fingers. This patch updates the logic to ignore small dips in pressure that are less than the threshold. Signed-off-by:
Jeremy Huddleston <jeremyhu@freedesktop.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Ping Cheng authored
Signed-off-by:
Ping Cheng <pingc@wacom.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- May 28, 2009
-
-
Dmitry Torokhov authored
Sometimes devices send us their responses in time but due to unfortunate scheduling decisions the receiving thread does not get scheduled till much later and we erroneously decide that device timed out. Work around this problem by checking whether we received the data we needed instead of checking timeout condition. Tested-by:
Sitsofe Wheeler <sitsofe@yahoo.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- May 27, 2009
-
-
Manuel Traut authored
platform_data != driver_data driver data is actually the "correct" place of the struct however it is not placed there due to the need of the ac97 struct. This is broken since d9105c2b aka "[ARM] 5184/1: Split ucb1400_ts into core and touchscreen" Signed-off-by:
Manuel Traut <manut@linutronix.de> Signed-off-by:
Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- May 23, 2009
-
-
Henrik Rydberg authored
There are a few multi-touch devices that support finger tracking well in hardware, Stantum being the prime example. By exposing the tracking ID in the MT protocol, evdev bandwidth and cpu usage in user space can be reduced. This patch adds the ABS_MT_TRACKING_ID to the MT protocol. Signed-off-by:
Henrik Rydberg <rydberg@euromail.se> Tested-by:
Stéphane Chatty <chatty@enac.fr> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- May 21, 2009
-
-
Michal Simek authored
Signed-off-by:
Michal Simek <monstr@monstr.eu>
-
- May 20, 2009
-
-
Alessandro Rubini authored
The second argument of the probe method points to the amba_id structure, so it's better passed with the correct type. None of the current in-tree drivers uses the pointer, so they have only been checked for a clean compile. Change suggested by Russell King. Signed-off-by:
Alessandro Rubini <rubini@unipv.it> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk>
-
- May 19, 2009
-
-
Daniel Mack authored
This patch adds a driver for EETI's I2C connected touchscreens. Signed-off-by:
Daniel Mack <daniel@caiaq.de> Tested-by:
Sven Neumann <s.neumann@raumfeld.com> Acked-by:
Jean Delvare <khali@linux-fr.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Michael Roth authored
Signed-off-by:
Michael Roth <mroth@nessie.de> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Michael Roth authored
Signed-off-by:
Michael Roth <mroth@nessie.de> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Ville Syrjala authored
No point in using atomic bitops when setting the input device keybits. Signed-off-by:
Ville Syrjala <syrjala@sci.fi> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- May 15, 2009
-
-
Felipe Balbi authored
lm8323 is the keypad driver used in n810 device. [akpm@linux-foundation.org: coding-style fixes] [dtor@mail.ru: various cleanups] Signed-off-by:
Felipe Balbi <felipe.balbi@nokia.com> Reviewed-by:
Trilok Soni <soni.trilok@gmail.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Zephaniah E. Hull authored
It appears that when the XO touchpad unit resets from ESD, it sends AA AA instead of AA 00, the psmouse-base code handles the case of AA 00 by triggering a serio reconnect for the port, causing a full reprobe of the device. Testing with OFW shows that this is likely to solve the problem, so the attached patch simply expands the existing test to also catch AA AA. Signed-off-by:
Andres Salomon <dilinger@debian.org> Signed-off-by:
Deepak Saxena <dsaxena@laptop.org> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Kwangwoo Lee authored
The platform codes must provide get_pendown_state() for the driver to work properly. Signed-off-by:
Kwangwoo Lee <kwangwoo.lee@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Aristeu Sergio Rozanski Filho authored
The destruction of a input device in uinput is triggered by an ioctl(). If a process tries to destroy an input device while other is uploading a force feedback effect by evdev to the same device, they'll deadlock. This patch fixes the problem by flushing all pending FF uploads before destroying the device and preventing new uploads during this operation. [dtor@mail.ru: fix logic that ensures we don't submit new requests to the device that is being destroyed.] Signed-off-by:
Aristeu Rozanski <aris@redhat.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- May 11, 2009
-
-
Thierry Reding authored
Now that hrtimers are always running in hard irq context we can't unconditionally enable interrupts at the end of the timer function. Signed-off-by:
Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by:
Kwangwoo Lee <kwangwoo.lee@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Adrian Batzill authored
Signed-off-by:
Adrian Batzill <agib@gmx.de> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Thadeu Lima de Souza Cascardo authored
For evdev, joydev and mousedev, instead of having a separate character array holding name of the handle, use struct devce's name which is the same. Signed-off-by:
Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- May 09, 2009
-
-
Dmitry Torokhov authored
Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- May 08, 2009
-
-
Ping Cheng authored
Signed-oof-by:
Ping Cheng <pingc@wacom.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Dmitry Torokhov authored
When we get a relative packet from trackpoint (when we deal with touchscreen/trackpoint combo) we should not send events for the device corresponding to touchscreen as it confuses evtouch driver (it looks like it keeps previously reported absolute coordinates and the cursor stays in the same place). Reported-by:
Marcin Drewka <laimoriel@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Dmitry Torokhov authored
Dell Latitude D630/D800 have DualPoint (touchpad plus trackpoint) instead of a simple touchpad and a pass-through port for external PS/2 mouse. Signed-off-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com>
-
- May 07, 2009
-
-
Jussi Kivilinna authored
When userspace sets effect->u.rumble.strong_magnitude to 0x8001 or larger, ml_combine_effects() would always return strong_magnitude 0xffff. Problem is that 'gain' is passed in as signed integer. Multiplying magnitude (__u16) with gain (int) causes magnitude read as signed and results negative value (with magnitude > 0x8000). This signed integer is then divided and value, still negative, converted to 32bit unsigned integer. Finally checking combine overflow min(new+old, 0xffff) gives out 0xffff. Fix is to simply change 'gain' to unsigned int. Signed-off-by:
Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Acked-by:
Anssi Hannula <anssi.hannula@gmail.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Tim Cole authored
BTN_TOUCH is not set by the wacom driver which causes it to be handled by the joydev driver while the resulting device is broken. This causes problems with applications that try to use a joystick device. Ubuntu BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/300143 Signed-off-by:
Tim Cole <tim.cole@canonical.com> Signed-off-by:
Stefan Bader <stefan.bader@canonical.com> Acked-by:
Tim Gardner <tim.gardner@canonical.com> Acked-by:
Amit Kucheria <amit.kucheria@canonical.com> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- May 01, 2009
-
-
Greg Kroah-Hartman authored
In the near future, the driver core is going to not allow direct access to the driver_data pointer in struct device. Instead, the functions dev_get_drvdata() and dev_set_drvdata() should be used. These functions have been around since the beginning, so are backwards compatible with all older kernel versions. Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
- Apr 28, 2009
-
-
Henrik Rydberg authored
In order to utilize the full power of the new multi-touch devices, a way to report detailed finger data to user space is needed. This patch adds a multi-touch (MT) protocol which allows drivers to report details for an arbitrary number of fingers. The driver sends a SYN_MT_REPORT event via the input_mt_sync() function when a complete finger has been reported. In order to stay compatible with existing applications, the data reported in a finger packet must not be recognized as single-touch events. In addition, all finger data must bypass input filtering, since subsequent events of the same type refer to different fingers. A set of ABS_MT events with the desired properties are defined. The events are divided into categories, to allow for partial implementation. The minimum set consists of ABS_MT_TOUCH_MAJOR, ABS_MT_POSITION_X and ABS_MT_POSITION_Y, which allows for multiple fingers to be tracked. If the device supports it, the ABS_MT_WIDTH_MAJOR may be used to provide the size of the approaching finger. Anisotropy and direction may be specified with ABS_MT_TOUCH_MINOR, ABS_MT_WIDTH_MINOR and ABS_MT_ORIENTATION. Devices with more granular information may specify general shapes as blobs, i.e., as a sequence of rectangular shapes grouped together by a ABS_MT_BLOB_ID. Finally, the ABS_MT_TOOL_TYPE may be used to specify whether the touching tool is a finger or a pen. Signed-off-by:
Henrik Rydberg <rydberg@euromail.se> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-
Henrik Rydberg authored
With the upcoming multi-touch interface as an example, there is a need to make certain that all reported events actually get passed to the event handler. This patch equips the input core with the ability to bypass all filtering for certain EV_ABS events. Signed-off-by:
Henrik Rydberg <rydberg@euromail.se> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
-