aboutsummaryrefslogtreecommitdiff
path: root/drivers/input
AgeCommit message (Collapse)AuthorFilesLines
2007-09-26Input: add support for HP Jornada 7xx onboard keyboardKristoffer Ericson3-0/+192
The driver supports onboard keyboards of HP Jornada 710/720/728 Signed-off-by: Kristoffer Ericson <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-26Input: add support for HP Jornada onboard keyboard (HP6XX)Kristoffer Ericson3-0/+289
Signed-off-by: Kristoffer Ericson <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-26Input: ucb1400_ts - use schedule_timeout_uninterruptibleRene Herman1-2/+1
Given that the code is not checking for signals it should use uninterruptible sleep. Signed-off-by: Rene Herman <[email protected]> Acked-by: Nicolas Pitre <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-26Input: xpad - fix dependancy on LEDS classDmitry Torokhov1-1/+1
The driver can not be built-in when LEDS class is a module. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-26Input: polled device power savingStephen Hemminger1-2/+5
For slow running polling, it saves power to align wakeups on tick boundary. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-26Input: gpio-keys - add suspend/resume supportAnti Sullin1-0/+52
This patch adds suspend/resume support and enables wakeup from gpio_keys buttons. Signed-off-by: Anti Sullin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-26Input: gpio_keys - verify that supplied GPIO numbers are validAnti Sullin1-7/+22
As David Brownell pointed out, gpio_keys driver does not check return code of gpio_to_irq(). This patch adds the gpio_to_irq return code check to gpio_keys and moves the IRQ edge type setting to request_irq flags to avoid changing the irq type before we have confirmed we can use it. Signed-off-by: Anti Sullin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-25Merge branch 'for-linus' of ↵Linus Torvalds1-2/+4
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: appletouch - fix idle reset logic
2007-09-25Input: appletouch - fix idle reset logicThomas Rohwer1-2/+4
Idle count should only be incremented when touchpad button is not pressed, otherwise reset may happen at a wrong time and touchpad will never report button release event. Signed-off-by: Thomas Rohwer <[email protected]> Acked-by: Matthew Garrett <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-12Merge branch 'for-linus' of ↵Linus Torvalds3-2/+12
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: usbtouchscreen - correctly set 'phys' Input: i8042 - add HP Pavilion DV4270ca to the MUX blacklist Input: i8042 - fix modpost warning Input: add more Braille keycodes
2007-09-10Input: usbtouchscreen - support DMC devices with empty EEPROMDaniel Ritz1-1/+2
A reply of 0x0600 means all OK, 0x1501 means OK, but EEPROM empty. The behavior with an empty EEPROM is the same as without one at all so do not fail loading the driver. Signed-off-by: Daniel Ritz <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-06Input: usbtouchscreen - correctly set 'phys'Vladimir Shebordaev1-1/+1
This patch fixes a nasty typo in usbtouchscreen driver. The typo is inherited from the original mtouchusb. It used to make the input subsytem to incorrectly report the physical device ids to userspace that in turn is very confusing for, e.g. XInput hotplug facilities in setups with multiple identical touchscreens. Signed-off-by: Vladimir Shebordaev <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-05Input: lifebook - add signature of Panasonic CF-72Dmitry Torokhov1-0/+8
Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-05Input: ALPS - add support for model found in Dell Vostro 1400William Pettersson1-0/+1
Signed-off-by: William Pettersson <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-04Input: usbtouchscreen - add support for IdealTEK URTC1000Ondrej Zary2-1/+64
This patch adds support for IdealTEK URTC1000 touchscreen controllers. Documentation can be downloaded at: http://projects.tbmn.org/cgi-bin/trac.cgi/wiki/urtc-1000 Signed-off-by: Ondrej Zary <[email protected]> Signed-off-by: Daniel Ritz <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-04Input: i8042 - add HP Pavilion DV4270ca to the MUX blacklistElvis Pranskevichus1-0/+10
This fixes "atkbd.c: Suprious NAK on isa0060/serio0" errors for HP Pavilion DV4270ca. Signed-off-by: Elvis Pranskevichus <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-04Input: i8042 - fix modpost warningRalf Baechle1-1/+1
i8042_unregister_ports's only caller i8042_remove is a __devexit function so make it __devexit too. Signed-off-by: Ralf Baechle <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-08-30Merge branch 'for-linus' of ↵Linus Torvalds5-11/+11
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: psmouse - make dummy touchkit_ps2_detect() static Input: gscps2 - convert to use kzalloc Input: iforce - fix 'unused variable' warning Input: i8042 - fix retrun value of i8042_aux_test_irq Input: gpio_keys - remove duplicate includes
2007-08-30Input: psmouse - make dummy touchkit_ps2_detect() staticAdrian Bunk1-1/+2
The dummy touchkit_ps2_detect() for the CONFIG_MOUSE_PS2_TOUCHKIT=n case shouldn't be a global function. Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-08-30Input: psmouse - reset harder during probeAlon Ziv1-2/+3
Some rodents appear to be extra-finicky, and require both PSMOUSE_RESET_DIS and PSMOUSE_RESET_BAT before they are unconfused enough to be probed. Signed-off-by: Alon Ziv <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-08-30Input: tsdev - implement proper lockingDmitry Torokhov1-112/+276
Signed-off-by: Dmitry Torokhov <[email protected]>
2007-08-30Input: joydev - implement proper lockingDmitry Torokhov1-251/+492
Signed-off-by: Dmitry Torokhov <[email protected]>
2007-08-30Input: mousedev - implement proper lockingDmitry Torokhov1-272/+470
Signed-off-by: Dmitry Torokhov <[email protected]>
2007-08-30Input: evdev - implement proper lockingDmitry Torokhov1-240/+473
Signed-off-by: Dmitry Torokhov <[email protected]>
2007-08-30Input: implement proper locking in input coreDmitry Torokhov1-175/+491
Also add some kerneldoc documentation to input.h Signed-off-by: Dmitry Torokhov <[email protected]>
2007-08-30Input: gscps2 - convert to use kzallocMariusz Kozlowski1-4/+2
Signed-off-by: Mariusz Kozlowski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-08-30Input: iforce - fix 'unused variable' warningAndrew Morton1-4/+4
drivers/input/joystick/iforce/iforce-packets.c: In function `iforce_get_id_packet': drivers/input/joystick/iforce/iforce-packets.c:249: warning: unused variable `status' Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-08-30Input: i8042 - fix retrun value of i8042_aux_test_irqFernando Luis Vázquez Cao1-1/+3
We should not return IRQ_HANDLED if we didn't handle the interrupt. Signed-off-by: Fernando Luis Vazquez Cao <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-08-22Introduce CONFIG_CHECK_SIGNATUREGeert Uytterhoeven1-0/+1
Introduce CONFIG_CHECK_SIGNATURE to control inclusion of check_signature() and avoid problems on platforms that don't have readb(). Let the few legacy (ISA || PCI || X86) drivers that need check_signature() select CONFIG_CHECK_SIGNATURE. Signed-off-by: Geert Uytterhoeven <[email protected]> Cc: Jeff Dike <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Roman Zippel <[email protected]> Cc: Alan Cox <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Russell King <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-07-31[MIPS] Fixup secure computing stuff.Ralf Baechle1-1/+1
Signed-off-by: Ralf Baechle <[email protected]>
2007-07-28Merge branch 'for-linus' of ↵Linus Torvalds1-1/+1
master.kernel.org:/pub/scm/linux/kernel/git/cooloney/blackfin-2.6 * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/cooloney/blackfin-2.6: Input Serio: Blackfin doesnt support I8042 - make sure it doesnt get selected Blackfin arch: add BF54x I2C/TWI TWI0 driver support Blackfin On-Chip RTC driver update for supporting BF54x Blackfin Ethernet MAC driver: fix bug Report returned -ENOMEM upwards (in case L1/uncached memory alloc fails) Blackfin arch: add error message when IRQ no available Blackfin arch: Initialize the exception vectors early in the boot process Blackfin arch: fix a compiling warning about dma-mapping Blackfin arch: switch to using proper defines this time THREAD_SIZE and PAGE_SIZE instead of just PAGE_SIZE everywhere Blackfin arch: fix bug which unaligns the init thread's stack and causes the current macro to fail. Blackfin arch: Load P0 before storing through it Blackfin arch: fix KGDB bug, dont forget last parameter. Blackfin arch: add selections for BF544 and BF542 Blackfin arch: use bfin_read_SWRST() now that BF561 provides it Blackfin arch: setup aliases for some core Core A MMRs
2007-07-24Input Serio: Blackfin doesnt support I8042 - make sure it doesnt get selectedMichael Hennerich1-1/+1
Signed-off-by: Michael Hennerich <[email protected]> Signed-off-by: Bryan Wu <[email protected]>
2007-07-23Input: gpio_keys - remove duplicate includesJesper Juhl1-1/+0
Signed-off-by: Jesper Juhl <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-07-23ACPI: autoload modules - Create __mod_acpi_device_table symbol for all ACPI ↵Thomas Renninger1-2/+7
drivers modpost is going to use these to create e.g. acpi:ACPI0001 in modules.alias. Signed-off-by: Thomas Renninger <[email protected]> Signed-off-by: Len Brown <[email protected]>
2007-07-21x86_64: use the global PIT lockThomas Gleixner1-3/+8
Replace the pcspkr private PIT lock by the global PIT lock to serialize the PIT access all over the place. Signed-off-by: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Dmitry Torokhov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-07-20Merge branch 'for-linus' of ↵Linus Torvalds10-113/+545
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: appletouch - improve powersaving for Geyser3 devices Input: lifebook - fix an oops on Panasonic CF-18 Input: document intended meaning of KEY_SWITCHVIDEOMODE Input: switch to using seq_list_xxx helpers Input: i8042 - give more trust to PNP data on i386 Input: add driver for Fujitsu serial touchscreens Input: ads7846 - re-check pendown status before reporting events Input: ads7846 - introduce sample settling delay Input: xpad - add support for leds on xbox 360 pad
2007-07-20Input: appletouch - improve powersaving for Geyser3 devicesSoeren Sonnenburg1-37/+74
The appletouch geyser3 devices found in the Intel Macs (and possibly some later PPC ones?) send a constant stream of packets after the first touch. This results in the kernel waking up around once every couple of milliseconds to process them, making it almost impossible to spend any significant amount of time in C3 state on a dynamic HZ kernel. Sending the mode initialization code makes the device shut up until it's touched again. This patch does so after receiving 10 packets with no interesting content. Signed-off-by: Soeren Sonnenburg <[email protected]> Signed-off-by: Matthew Garrett <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-07-20Input: lifebook - fix an oops on Panasonic CF-18Dmitry Torokhov1-1/+1
Signed-off-by: Dmitry Torokhov <[email protected]>
2007-07-19some kmalloc/memset ->kzalloc (tree wide)Yoann Padioleau3-12/+6
Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc). Here is a short excerpt of the semantic patch performing this transformation: @@ type T2; expression x; identifier f,fld; expression E; expression E1,E2; expression e1,e2,e3,y; statement S; @@ x = - kmalloc + kzalloc (E1,E2) ... when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\) - memset((T2)x,0,E1); @@ expression E1,E2,E3; @@ - kzalloc(E1 * E2,E3) + kcalloc(E1,E2,E3) [[email protected]: get kcalloc args the right way around] Signed-off-by: Yoann Padioleau <[email protected]> Cc: Richard Henderson <[email protected]> Cc: Ivan Kokshaysky <[email protected]> Acked-by: Russell King <[email protected]> Cc: Bryan Wu <[email protected]> Acked-by: Jiri Slaby <[email protected]> Cc: Dave Airlie <[email protected]> Acked-by: Roland Dreier <[email protected]> Cc: Jiri Kosina <[email protected]> Acked-by: Dmitry Torokhov <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Acked-by: Mauro Carvalho Chehab <[email protected]> Acked-by: Pierre Ossman <[email protected]> Cc: Jeff Garzik <[email protected]> Cc: "David S. Miller" <[email protected]> Acked-by: Greg KH <[email protected]> Cc: James Bottomley <[email protected]> Cc: "Antonino A. Daplas" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-07-18Input: i8042 - restore control register when enabling port failsMarkus Armbruster1-0/+4
When enabling interrupts for a port fails, the interrupt enable and port enable bits remain set in i8042_ctr. Later writes of i8042_ctr to the hardware could accidentally retry enabling interrupts. Clear the bits on failure. Signed-off-by: Markus Armbruster <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-07-18Input: xpad - use le16_to_cpup when parsing data streamDmitry Torokhov1-19/+36
Use avaliable functions instead of doing it all manually. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-07-18Input: switch to using seq_list_xxx helpersPavel Emelianov1-25/+4
This is essentially just a renaming of the existing functions as copies of seq_list_start() and seq_list_next() already existed in the input.c. Signed-off-by: Pavel Emelianov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-07-18Input: i8042 - give more trust to PNP data on i386Dmitry Torokhov1-7/+29
On some boxes that don't have PS/2 mice connected at startup BIOS completely disables AUX port and attempts to access it result in hosed keyboard. Historically we do not trust ACPI/PNP data on i386 and try to poke AUX port even if we did not find an active PNP node for it. However in cases when BIOS writers got KBD port properly described we can assume that they did the right thing for AUX port as well. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-07-18Input: add driver for Fujitsu serial touchscreensDmitry Torokhov3-0/+203
These serial touchscreens are found on some Fujitsu lifebook P-series laptops, and the B6210. Using this requires a new version of inputattach and doing: inputattach -fjt /dev/ttyS0 Big thanks to Stephen Hemminger for testing it and making it work on his B6210 laptop. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-07-18Input: ads7846 - re-check pendown status before reporting eventsSemih Hazar1-0/+15
Pendown status from the PENIRQ pin is currently read only at the beginning of a sample set. If the pen is lifted just after sampling has began then sampled values become wrong. This patch adds an optional platform penirq_recheck_delay attribute. If non-zero, samples are only reported to the input subsystem if PENIRQ is still active that long after the samples taken. Signed-off-by: Semih Hazar <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-07-18Input: ads7846 - introduce sample settling delaySemih Hazar1-1/+64
The ads7846 driver has support for filtering, but when the chip gets deselected between samples this causes noise. This patch adds support for an optional settling delay time, so that two consecutive samples will be taken with the specified delay time apart. This ensures that the chip won't be deselected, so the noise won't appear. Filtering can still be done, but will have less work to do since each time a new sample is taken the same delay applies. Signed-off-by: Semih Hazar <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-07-18Input: xpad - add support for leds on xbox 360 padJan Kratochvil2-42/+155
Export LEDs on Xbox360 pad via led subsystem as a single device in /sys/class/leds/xpad[0-9]+. Xbox360 pad has four leds, which form a circle. Unfortunately the leds can't be controlled independently and can only display a predefined set of patterns (for example one is turned on wile others are off or a rotating pattern - 1-2-3-4). To activate a pattern one needs to send a specific command to the device (see http://www.free60.org/wiki/Gamepad). Led subsystem allows us to set brightness, but there is nothing like brightness on this device. So brightness is actually interpreted as the command (only values between 0 and 14 are accepted). Signed-off-by: Jan Kratochvil <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-07-17Freezer: make kernel threads nonfreezable by defaultRafael J. Wysocki3-0/+3
Currently, the freezer treats all tasks as freezable, except for the kernel threads that explicitly set the PF_NOFREEZE flag for themselves. This approach is problematic, since it requires every kernel thread to either set PF_NOFREEZE explicitly, or call try_to_freeze(), even if it doesn't care for the freezing of tasks at all. It seems better to only require the kernel threads that want to or need to be frozen to use some freezer-related code and to remove any freezer-related code from the other (nonfreezable) kernel threads, which is done in this patch. The patch causes all kernel threads to be nonfreezable by default (ie. to have PF_NOFREEZE set by default) and introduces the set_freezable() function that should be called by the freezable kernel threads in order to unset PF_NOFREEZE. It also makes all of the currently freezable kernel threads call set_freezable(), so it shouldn't cause any (intentional) change of behaviour to appear. Additionally, it updates documentation to describe the freezing of tasks more accurately. [[email protected]: build fixes] Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Nigel Cunningham <[email protected]> Cc: Pavel Machek <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Gautham R Shenoy <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-07-11sysfs: kill unnecessary attribute->ownerTejun Heo1-1/+0
sysfs is now completely out of driver/module lifetime game. After deletion, a sysfs node doesn't access anything outside sysfs proper, so there's no reason to hold onto the attribute owners. Note that often the wrong modules were accounted for as owners leading to accessing removed modules. This patch kills now unnecessary attribute->owner. Note that with this change, userland holding a sysfs node does not prevent the backing module from being unloaded. For more info regarding lifetime rule cleanup, please read the following message. http://article.gmane.org/gmane.linux.kernel/510293 (tweaked by Greg to not delete the field just yet, to make it easier to merge things properly.) Signed-off-by: Tejun Heo <[email protected]> Cc: Cornelia Huck <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-07-10Input: tsdev - fix broken usec-to-millisecs conversionAndrew Morton1-1/+1
Noted by Fengwei Yin <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>