21 Apr, 2009

1 commit


09 Oct, 2008

1 commit


21 Jul, 2008

1 commit


13 Jun, 2008

1 commit

  • Several console keyboard maps are broken since

    commit 04c71976500352d02f60616d2b960267d8c5fe24
    Author: Samuel Thibault
    Date: Tue Oct 16 23:27:04 2007 -0700

    unicode diacritics support

    because that changeset made k_self consider the value as a latin1
    character when in Unicode mode, which is wrong; k_self should still take
    the console map into account.

    Signed-off-by: Samuel Thibault
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Bohac
     

17 May, 2008

1 commit

  • Remove unused to_dev, to_handler, to_handle from include/linux/input.h
    Move to_handle_h from include/linux/input.h to drivers/char/keyboard.c

    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Dmitry Torokhov

    Joe Perches
     

30 Apr, 2008

2 commits

  • This adds a minimalistic braille screen reader support. This is meant to
    be used by blind people e.g. on boot failures or when / cannot be mounted
    etc and thus the userland screen readers can not work.

    [akpm@linux-foundation.org: fix exports]
    Signed-off-by: Samuel Thibault
    Cc: Jiri Kosina
    Cc: Dmitry Torokhov
    Acked-by: Alan Cox
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samuel Thibault
     
  • - Operations are now a shared const function block as with most other Linux
    objects

    - Introduce wrappers for some optional functions to get consistent behaviour

    - Wrap put_char which used to be patched by the tty layer

    - Document which functions are needed/optional

    - Make put_char report success/fail

    - Cache the driver->ops pointer in the tty as tty->ops

    - Remove various surplus lock calls we no longer need

    - Remove proc_write method as noted by Alexey Dobriyan

    - Introduce some missing sanity checks where certain driver/ldisc
    combinations would oops as they didn't check needed methods were present

    [akpm@linux-foundation.org: fix fs/compat_ioctl.c build]
    [akpm@linux-foundation.org: fix isicom]
    [akpm@linux-foundation.org: fix arch/ia64/hp/sim/simserial.c build]
    [akpm@linux-foundation.org: fix kgdb]
    Signed-off-by: Alan Cox
    Acked-by: Greg Kroah-Hartman
    Cc: Jason Wessel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     

26 Apr, 2008

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (40 commits)
    Input: wacom - add support for Cintiq 20WSX
    Input: ucb1400_ts - IRQ probe fix
    Input: at32psif - update MODULE_AUTHOR with new email
    Input: mac_hid - add lockdep annotation to emumousebtn
    Input: i8042 - fix incorrect usage of strncpy and strncat
    Input: bf54x-keys - add infrastructure for keypad wakeups
    Input: add MODULE_ALIAS() to hotpluggable platform modules
    Input: drivers/char/keyboard.c - use time_after
    Input: fix ordering in joystick Makefile
    Input: wm97xx-core - support use as a wakeup source
    Input: wm97xx-core - use IRQF_SAMPLE_RANDOM
    Input: wm97xx-core - only schedule interrupt handler if not already scheduled
    Input: add Zhen Hua driver
    Input: aiptek - add support for Genius G-PEN 560 tablet
    Input: wacom - implement suspend and autosuspend
    Input: xpad - set proper buffer length for outgoing requests
    Input: omap-keypad - fix build warning
    Input: gpio_keys - irq handling cleanup
    Input: add PS/2 serio driver for AVR32 devices
    Input: put ledstate in the keyboard notifier
    ...

    Linus Torvalds
     

25 Apr, 2008

1 commit


20 Apr, 2008

1 commit


15 Apr, 2008

1 commit


21 Jan, 2008

2 commits


20 Oct, 2007

2 commits

  • get rid of input BIT* duplicate defines

    use newly global defined macros for input layer. Also remove includes of
    input.h from non-input sources only for BIT macro definiton. Define the
    macro temporarily in local manner, all those local definitons will be
    removed further in this patchset (to not break bisecting).
    BIT macro will be globally defined (1<
    Cc:
    Acked-by: Jiri Kosina
    Cc:
    Acked-by: Marcel Holtmann
    Cc:
    Acked-by: Mauro Carvalho Chehab
    Cc:
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Some blind people use a kernel engine called Speakup which uses hardware
    synthesis to speak what gets displayed on the screen. They use the
    PC keyboard to control this engine (start/stop, accelerate, ...) and
    also need to get keyboard feedback (to make sure to know what they are
    typing, the caps lock status, etc.)

    Up to now, the way it was done was very ugly. Below is a patch to add a
    notifier list for permitting a far better implementation, see ChangeLog
    above for details.

    You may wonder why this can't be done at the input layer. The problem
    is that what people want to monitor is the console keyboard, i.e. all
    input keyboards that got attached to the console, and with the currently
    active keymap (i.e. keysyms, not only keycodes).

    This adds a keyboard notifier that such modules can use to get the keyboard
    events and possibly eat them, at several stages:

    - keycodes: even before translation into keysym.
    - unbound keycodes: when no keysym is bound.
    - unicode: when the keycode would get translated into a unicode character.
    - keysym: when the keycode would get translated into a keysym.
    - post_keysym: after the keysym got interpreted, so as to see the result
    (caps lock, etc.)

    This also provides access to k_handler so as to permit simulation of
    keypresses.

    [akpm@linux-foundation.org: various fixes]
    Signed-off-by: Samuel Thibault
    Cc: Jiri Kosina
    Cc: Dmitry Torokhov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samuel Thibault
     

17 Oct, 2007

2 commits

  • As of now, the kernel defaults to non-unicode and XLATE for the keyboard.
    We've been changing this in Fedora, but that requires patching the defaults
    in the kernel.

    The attached introduces CONFIG_VT_UNICODE, which sets the console in
    unicode mode by default on boot, including both the virtual terminal and
    the keyboard driver.

    Signed-off-by: Bill Nottingham
    Cc: Samuel Thibault
    Cc: Dmitry Torokhov
    Cc: Jiri Kosina
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bill Nottingham
     
  • There have been issues with non-latin1 diacritics and unicode.
    http://bugzilla.kernel.org/show_bug.cgi?id=7746

    Git 759448f459234bfcf34b82471f0dba77a9aca498 `Kernel utf-8 handling'
    partly resolved it by adding conversion between diacritics and
    unicode. The patch below goes further by just turning diacritics into
    unicode, hence providing better future support. The kbd support can be
    fetched from
    http://bugzilla.kernel.org/attachment.cgi?id=12313

    This was tested in all of latin1, latin9, latin2 and unicode with french
    and czech dead keys.

    Turn the kernel accent_table into unicode, and extend ioctls KDGKBDIACR
    and KDSKBDIACR into their equivalents KDGKBDIACRUC and KDSKBDIACR.

    New function int conv_uni_to_8bit(u32 uni) for converting unicode into 8bit
    _input_. No, we don't want to store the translation, as it is potentially
    sparse and large.

    Signed-off-by: Samuel Thibault
    Cc: Jan Engelhardt
    Cc: "Antonino A. Daplas"
    Cc: David Woodhouse
    Cc: Martin Schwidefsky
    Cc: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samuel Thibault
     

23 Aug, 2007

1 commit

  • m68k/mac: Make mac_hid_mouse_emulate_buttons() declaration visible

    drivers/char/keyboard.c: In function 'kbd_keycode':
    drivers/char/keyboard.c:1142: error: implicit declaration of function 'mac_hid_mouse_emulate_buttons'

    The forward declaration of mac_hid_mouse_emulate_buttons() is not visible on
    m68k because it's hidden in the middle of a big #ifdef block.

    Move it to , correct the type of the second parameter, and
    include where needed.

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     

17 Jul, 2007

1 commit

  • This patch fixes dead keys and copy/paste of non-ASCII characters in UTF-8
    mode on Linux console. See more details about the original patch at:
    http://chris.heathens.co.nz/linux/utf8.html

    Already posted on
    (Oldest) http://lkml.org/lkml/2003/5/31/148
    http://lkml.org/lkml/2005/12/24/69
    (Recent) http://lkml.org/lkml/2006/8/7/75

    [bunk@stusta.de: make drivers/char/selection.c:store_utf8() static]
    Signed-off-by: Jan Engelhardt
    Cc: Alexander E. Patrakov
    Cc: Dmitry Torokhov
    Cc: "Antonino A. Daplas"
    Signed-off-by: Adrian Bunk
    Cc: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Engelhardt
     

10 Jul, 2007

1 commit


09 May, 2007

1 commit


12 Apr, 2007

2 commits


15 Mar, 2007

1 commit


14 Feb, 2007

1 commit

  • Somewhere in the rewrite of the work queues my cleanup of SAK handling
    got broken. Maybe I didn't retest it properly or possibly the API
    was changing so fast I missed something. Regardless currently
    triggering a SAK now generates an ugly BUG_ON and kills the kernel.

    Thanks to Alexey Dobriyan for spotting this.

    This modifies the use of SAK_work to initialize it when the data
    structure it resides in is initialized, and to simply call
    schedule_work when we need to generate a SAK. I update both
    data structures that have a SAK_work member for consistency.

    All of the old PREPARE_WORK calls that are now gone.

    If we call schedule_work again before it has processed it
    has generated the first SAK it will simply ignore the duplicate
    schedule_work request.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     

12 Feb, 2007

1 commit

  • This does several things.
    - It moves looking up of the current foreground console into process
    context where we can safely take the semaphore that protects this
    operation.
    - It uses the new flavor of work queue processing.
    - This generates a factor of do_SAK, __do_SAK that runs immediately.
    - This calls __do_SAK with the console semaphore held ensuring nothing
    else happens to the console while we process the SAK operation.
    - With the console SAK processing moved into process context this
    patch removes the xchg operations that I used to attempt to attomically
    update struct pid, because of the strange locking used in the SAK processing.
    With SAK using the normal console semaphore nothing special is needed.

    Cc: Oleg Nesterov
    Signed-off-by: Eric W. Biederman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     

05 Nov, 2006

1 commit


05 Oct, 2006

1 commit

  • 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
    (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)

    David Howells
     

02 Oct, 2006

2 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (35 commits)
    Input: wistron - add support for Acer TravelMate 2424NWXCi
    Input: wistron - fix setting up special buttons
    Input: add KEY_BLUETOOTH and KEY_WLAN definitions
    Input: add new BUS_VIRTUAL bus type
    Input: add driver for stowaway serial keyboards
    Input: make input_register_handler() return error codes
    Input: remove cruft that was needed for transition to sysfs
    Input: fix input module refcounting
    Input: constify input core
    Input: libps2 - rearrange exports
    Input: atkbd - support Microsoft Natural Elite Pro keyboards
    Input: i8042 - disable MUX mode on Toshiba Equium A110
    Input: i8042 - get rid of polling timer
    Input: send key up events at disconnect
    Input: constify psmouse driver
    Input: i8042 - add Amoi to the MUX blacklist
    Input: logips2pp - add sugnature 56 (Cordless MouseMan Wheel), cleanup
    Input: add driver for Touchwin serial touchscreens
    Input: add driver for Touchright serial touchscreens
    Input: add driver for Penmount serial touchscreens
    ...

    Linus Torvalds
     
  • This is such a rare path it took me a while to figure out how to test
    this after soring out the locking.

    This patch does several things.
    - The variables used are moved into a structure and declared in vt_kern.h
    - A spinlock is added so we don't have SMP races updating the values.
    - Instead of raw pid_t value a struct_pid is used to guard against
    pid wrap around issues, if the daemon to spawn a new console dies.

    Signed-off-by: Eric W. Biederman
    Cc: Oleg Nesterov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     

19 Sep, 2006

1 commit


14 Sep, 2006

2 commits


05 Aug, 2006

1 commit


19 Jul, 2006

2 commits


06 Jul, 2006

2 commits

  • Create input_inject_event() function which is to be used by input
    handlers as opposed to input_event() which is reserved for drivers
    implementing input devices. The difference is that if device is
    "grabbed" by some process input_inject_event() will ignore events
    unless sent from the handle that is currently owns the device.

    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     
  • The new start() method is called immediately after connect() and also
    when "grabbed" device is released by its owner. This will allow input
    handlers to re-synchronize state of once-grabbed device with the rest
    of devices.

    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     

01 Jul, 2006

1 commit


27 Jun, 2006

1 commit

  • * master.kernel.org:/pub/scm/linux/kernel/git/dtor/input:
    Input: iforce - remove some pointless casts
    Input: psmouse - add support for Intellimouse 4.0
    Input: atkbd - fix HANGEUL/HANJA keys
    Input: fix misspelling of Hangeul key
    Input: via-pmu - add input device support
    Input: rearrange exports
    Input: fix formatting to better follow CodingStyle
    Input: reset name, phys and uniq when unregistering
    Input: return correct size when reading modalias attribute
    Input: change my e-mail address in MAINTAINERS file
    Input: fix potential overflows in driver/input/keyboard
    Input: fix potential overflows in driver/input/touchscreen
    Input: fix potential overflows in driver/input/joystick
    Input: fix potential overflows in driver/input/mouse
    Input: fix accuracy of fixp-arith.h
    Input: iforce - use ENOSPC instead of ENOMEM
    Input: constify drivers/char/keyboard.c

    Linus Torvalds