01 Dec, 2011

1 commit


08 Aug, 2011

1 commit


18 Jun, 2011

1 commit


28 Apr, 2011

1 commit


23 Dec, 2010

1 commit

  • Most keypad drivers make use of the
    defined macros, structures and inline functions.

    Convert omap-keypad driver to use those as well, as suggested by a
    compile time warning, hardcoded into the OMAP .

    Created against linux-2.6.37-rc5.
    Tested on Amstrad Delta.
    Compile tested with omap1_defconfig and omap2plus_defconfig shrinked to
    board-h4.

    Signed-off-by: Janusz Krzysztofik
    Reviewed-by: Aaro Koskinen
    Acked-by: Dmitry Torokhov
    Signed-off-by: Tony Lindgren

    Janusz Krzysztofik
     

30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

21 Oct, 2009

1 commit

  • Move the remaining headers under plat-omap/include/mach
    to plat-omap/include/plat. Also search and replace the
    files using these headers to include using the right path.

    This was done with:

    #!/bin/bash
    mach_dir_old="arch/arm/plat-omap/include/mach"
    plat_dir_new="arch/arm/plat-omap/include/plat"
    headers=$(cd $mach_dir_old && ls *.h)
    omap_dirs="arch/arm/*omap*/ \
    drivers/video/omap \
    sound/soc/omap"
    other_files="drivers/leds/leds-ams-delta.c \
    drivers/mfd/menelaus.c \
    drivers/mfd/twl4030-core.c \
    drivers/mtd/nand/ams-delta.c"

    for header in $headers; do
    old="#include

    Tony Lindgren
     

29 Aug, 2009

1 commit


18 Apr, 2009

1 commit

  • disable_irq() waits for all running handlers to complete before
    returning. As such, if it's used to disable an interrupt from
    that interrupt's handler it will deadlock. This replaces the
    dangerous instances with the _nosync() variant which doesn't have
    this problem.

    Signed-off-by: Ben Nizette
    Signed-off-by: Dmitry Torokhov

    Ben Nizette
     

03 Mar, 2009

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: elantech - touchpad driver miss-recognising logitech mice
    Input: synaptics - ensure we reset the device on resume
    Input: usbtouchscreen - fix eGalax HID ignoring
    Input: ambakmi - fix timeout handling in amba_kmi_write()
    Input: pxa930_trkball - fix write timeout handling
    Input: struct device - replace bus_id with dev_name(), dev_set_name()
    Input: bf54x-keys - fix debounce time validation
    Input: spitzkbd - mark probe function as __devinit
    Input: omap-keypad - mark probe function as __devinit
    Input: corgi_ts - mark probe function as __devinit
    Input: corgikbd - mark probe function as __devinit
    Input: uvc - the button on the camera is KEY_CAMERA
    Input: psmouse - make MOUSE_PS2_LIFEBOOK depend on X86
    Input: atkbd - make forced_release_keys[] static
    Input: usbtouchscreen - allow reporting calibrated data

    Linus Torvalds
     

14 Jan, 2009

1 commit

  • A pointer to omap_kp_probe is passed to the core via
    platform_driver_register and so the function must not disappear when the
    .init sections are discarded. Otherwise (if also having HOTPLUG=y)
    unbinding and binding a device to the driver via sysfs will result in an
    oops as does a device being registered late.

    An alternative to this patch is using platform_driver_probe instead of
    platform_driver_register plus removing the pointer to the probe function
    from the struct platform_driver.

    [dtor@mail.ru: fixed some more section markups]
    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Dmitry Torokhov

    Uwe Kleine-König
     

07 Jan, 2009

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (29 commits)
    Input: i8042 - add Dell Vostro 1510 to nomux list
    Input: gtco - use USB endpoint API
    Input: add support for Maple controller as a joystick
    Input: atkbd - broaden the Dell DMI signatures
    Input: HIL drivers - add MODULE_ALIAS()
    Input: map_to_7segment.h - convert to __inline__ for userspace
    Input: add support for enhanced rotary controller on pxa930 and pxa935
    Input: add support for trackball on pxa930 and pxa935
    Input: add da9034 touchscreen support
    Input: ads7846 - strict_strtoul takes unsigned long
    Input: make some variables and functions static
    Input: add tsc2007 based touchscreen driver
    Input: psmouse - add module parameters to control OLPC touchpad delays
    Input: i8042 - add Gigabyte M912 netbook to noloop exception table
    Input: atkbd - Samsung NC10 key repeat fix
    Input: atkbd - add keyboard quirk for HP Pavilion ZV6100 laptop
    Input: libps2 - handle 0xfc responses from devices
    Input: add support for Wacom W8001 penabled serial touchscreen
    Input: synaptics - report multi-taps only if supported by the device
    Input: add joystick driver for Walkera WK-0701 RC transmitter
    ...

    Linus Torvalds
     

11 Dec, 2008

1 commit

  • Have most uses of OMAP_GPIO_IRQ() use gpio_to_irq() instead.
    Calls used for table initialization are left alone, at least
    this time around.

    (This patch is for code in both the OMAP tree and mainline.)

    Signed-off-by: David Brownell
    Signed-off-by: Tony Lindgren

    David Brownell
     

29 Oct, 2008

2 commits


17 Oct, 2008

2 commits

  • * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (51 commits)
    [ARM] 5308/1: Fix Viper ISA IRQ handling
    [ARM] 5307/1: pxa: fix CM-X2XX PCMCIA build error
    [ARM] 5306/1: pxa: fix build error on CM-X270
    [ARM] 5302/1: ARM: OMAP: Revert omap3 WDT changes to avoid merge conflict
    [ARM] 5305/1: ARM: OMAP: Fix compile of McBSP by removing unnecessary check
    [ARM] 5301/1: ARM: OMAP: Add missing irq defines
    ARM: OMAP3: Add default kernel config for OMAP LDP
    ARM: OMAP3: Add basic board support for OMAP LDP
    ARM: OMAP3: Defconfig for the Gumstix Overo board (rev 3)
    ARM: OMAP3: Add support for the Gumstix Overo board (rev 3)
    ARM: OMAP3: Add Beagle defconfig
    ARM: OMAP3: Add minimal Beagle board support
    ARM: OMAP3: Add minimal omap3430 support
    ARM: OMAP2: Fix sparse, checkpatch warnings in OMAP2/3 IRQ code
    ARM: OMAP: Fixes to omap_mcbsp_request function
    ARM: OMAP: Add support for OMAP2430 in McBSP
    ARM: OMAP: Add support for McBSP devices 3 - 5 on 34xx
    ARM: OMAP: Allocate McBSP devices dynamically
    Fix sections for omap-mcbsp platform driver
    [ARM] S3C24XX: Additional include moves
    ...

    Linus Torvalds
     
  • This updates most of the OMAP drivers which are in mainline to switch to
    using the cross-platform GPIO calls instead of the older OMAP-specific
    ones.

    This is all fairly brainless/obvious stuff. Probably the most interesting
    bit is to observe that the omap-keypad code seems to now have a portable
    core that could work with non-OMAP matrix keypads. (That would improve
    with hardware IRQ debouncing enabled, of course...)

    Signed-off-by: David Brownell
    Signed-off-by: Tony Lindgren
    Cc: Dmitry Torokhov
    Cc: Antonino Daplas
    Cc: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     

06 Sep, 2008

1 commit


07 Aug, 2008

3 commits


25 Apr, 2008

1 commit

  • Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias
    is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable
    "input" platform drivers, to re-enable auto loading.

    [dbrownell@users.sourceforge.net: more drivers, registration fixes]
    Signed-off-by: Kay Sievers
    Signed-off-by: David Brownell
    Signed-off-by: Dmitry Torokhov

    Kay Sievers
     

15 Apr, 2008

1 commit

  • Fix the following build warning:

    drivers/input/keyboard/omap-keypad.c: In function 'omap_kp_probe':
    drivers/input/keyboard/omap-keypad.c:418: warning: 'row_idx' is used uninitialized in this function
    drivers/input/keyboard/omap-keypad.c:421: warning: 'col_idx' is used uninitialized in this function

    These variables are useful when cpu_is_omap24xx(), and otherwise just
    for useless cleanup.

    Signed-off-by: David Brownell
    Signed-off-by: Tony Lindgren
    Signed-off-by: Dmitry Torokhov

    David Brownell
     

20 Oct, 2007

1 commit

  • * Convert files to UTF-8.

    * Also correct some people's names
    (one example is Eißfeldt, which was found in a source file.
    Given that the author used an ß at all in a source file
    indicates that the real name has in fact a 'ß' and not an 'ss',
    which is commonly used as a substitute for 'ß' when limited to
    7bit.)

    * Correct town names (Goettingen -> Göttingen)

    * Update Eberhard Mönkeberg's address (http://lkml.org/lkml/2007/1/8/313)

    Signed-off-by: Jan Engelhardt
    Signed-off-by: Adrian Bunk

    Jan Engelhardt
     

13 Oct, 2007

1 commit


12 Apr, 2007

2 commits


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
     

30 Sep, 2006

1 commit

  • This patch adds support for keypad driver running on different TI
    OMAP(http://www.ti.com/omap) processor based boards like OSK, H2, H3, H4,
    Persuas and Nokia 770.

    Signed-off-by: Komal Shah
    Acked-by: Dmitry Torokhov
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Komal Shah