13 Oct, 2007

2 commits


12 Sep, 2007

1 commit


05 Sep, 2007

2 commits


31 Aug, 2007

1 commit


30 Aug, 2007

2 commits


24 Jul, 2007

1 commit


21 Jul, 2007

1 commit

  • * '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

    Linus Torvalds
     

20 Jul, 2007

1 commit

  • 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)

    [akpm@linux-foundation.org: get kcalloc args the right way around]
    Signed-off-by: Yoann Padioleau
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Acked-by: Russell King
    Cc: Bryan Wu
    Acked-by: Jiri Slaby
    Cc: Dave Airlie
    Acked-by: Roland Dreier
    Cc: Jiri Kosina
    Acked-by: Dmitry Torokhov
    Cc: Benjamin Herrenschmidt
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Pierre Ossman
    Cc: Jeff Garzik
    Cc: "David S. Miller"
    Acked-by: Greg KH
    Cc: James Bottomley
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     

18 Jul, 2007

3 commits

  • 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
    Signed-off-by: Dmitry Torokhov

    Markus Armbruster
     
  • 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

    Dmitry Torokhov
     
  • 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.

    [akpm@linux-foundation.org: build fixes]
    Signed-off-by: Rafael J. Wysocki
    Acked-by: Nigel Cunningham
    Cc: Pavel Machek
    Cc: Oleg Nesterov
    Cc: Gautham R Shenoy
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     

10 Jul, 2007

1 commit


06 Jul, 2007

1 commit


29 Jun, 2007

1 commit

  • We need to take serio->drv_mutex in serio_cleanup() to prevent the
    function from being called while driver is in the middle of attaching
    to a serio port. Such situation can happen with i8042 and atkbd drivers
    if user rapidly presses Ctrl-Alt-Del during system startup, and leads
    to kernel oops.

    Reported-by: Dave Young
    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     

28 Jun, 2007

1 commit

  • This should get rid of "atkbd.c: Suprious NAK on isa0060/serio0"
    messages caused by broken MUX implementation. The box does not
    have external PS/2 ports and, according to documentation,
    automatically disables touchpad when an external mouse is plugged
    into a port replicator, so MUX mode would not work anyway.

    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     

14 Jun, 2007

1 commit


12 Jun, 2007

2 commits


31 May, 2007

1 commit

  • The following patch fixes these section mismatch warnings:

    WARNING: arch/arm/mach-at91/built-in.o(.text+0xdf4): Section mismatch: reference to .init.data:dk_nand_partition (between 'nand_partitions' and 'at91_leds_event')
    WARNING: arch/arm/mach-at91/built-in.o(.text+0xbdc): Section mismatch: reference to .init.data:ek_nand_partition (after 'nand_partitions')
    WARNING: arch/arm/mach-at91/built-in.o(.text+0xbdc): Section mismatch: reference to .init.data:ek_nand_partition (between 'nand_partitions' and 'ads7843_pendown_state')
    WARNING: arch/arm/mach-at91/built-in.o(.text+0xbdc): Section mismatch: reference to .init.data:ek_nand_partition (after 'nand_partitions')
    WARNING: arch/arm/mach-at91/built-in.o(.text+0xc28): Section mismatch: reference to .init.data:kb9202_nand_partition (after 'nand_partitions')
    WARNING: arch/arm/mach-footbridge/built-in.o(.text+0xaa4): Section mismatch: reference to .init.data:cats_pci (between 'cats_pci_init' and 'ebsa285_leds_event')WARNING: arch/arm/mach-ixp2000/built-in.o(.text+0xb54): Section mismatch: reference to .init.text:ixp2000_init_irq (between 'ixdp2x00_init_irq' and 'ixdp2x00_irq_handler')
    WARNING: arch/arm/mach-ixp23xx/built-in.o(.text+0x670): Section mismatch: reference to .init.text:ixp23xx_pci_common_init (between 'ixp23xx_pci_slave_init' and 'ixp23xx_pci_scan_bus')
    WARNING: arch/arm/mach-ixp23xx/built-in.o(.text+0x890): Section mismatch: reference to .init.text:ixp23xx_init_irq (between 'ixdp2351_init_irq' and 'roadrunner_pci_preinit')
    WARNING: arch/arm/mach-ixp23xx/built-in.o(.text+0x9a8): Section mismatch: reference to .init.text:ixp23xx_pci_preinit (after 'roadrunner_pci_preinit')
    WARNING: arch/arm/mach-imx/built-in.o(__ksymtab+0x80): Section mismatch: reference to .init.text:imx_set_mmc_info (between '__ksymtab_imx_set_mmc_info' and '__ksymtab_set_imx_fb_info')
    WARNING: arch/arm/mach-imx/built-in.o(__ksymtab+0x88): Section mismatch: reference to .init.text:set_imx_fb_info (after '__ksymtab_set_imx_fb_info')
    WARNING: arch/arm/mach-sa1100/built-in.o(.text+0x1930): Section mismatch: reference to .init.data:neponset_port_fns (between 'neponset_probe' and 'assabet_leds_event')
    WARNING: drivers/built-in.o(.text+0x3f100): Section mismatch: reference to .init.text:ps2_clear_input (between 'ps2_probe' and 'ps2_cmd_aborted')
    WARNING: drivers/built-in.o(.text+0x3f1c8): Section mismatch: reference to .init.text:ps2_clear_input (between 'ps2_probe' and 'ps2_cmd_aborted')
    WARNING: drivers/built-in.o(.text+0x4f988): Section mismatch: reference to .init.text:ps2_clear_input (between 'ps2_probe' and 'ps2_cmd_aborted')
    WARNING: drivers/built-in.o(.text+0x4fa50): Section mismatch: reference to .init.text:ps2_clear_input (between 'ps2_probe' and 'ps2_cmd_aborted')

    Signed-off-by: Sam Ravnborg
    Acked-by: Lennert Buytenhek
    Signed-off-by: Russell King

    Russell King
     

08 May, 2007

1 commit

  • The i8042 driver fails detection of the AUX port with some chips,
    because they apparently do not change the I8042_CTR_AUXDIS bit
    immediately. This is known to affect at least HP500/HP510 notebooks,
    consequently the built-in touchpad will not work. The patch will simply
    reread the value until it gets the expected value or a retry limit is
    hit, without touching other workaround code in the same area.

    Signed-off-by: Roland Scheidegger
    Signed-off-by: Dmitry Torokhov

    Roland Scheidegger
     

01 May, 2007

1 commit


28 Apr, 2007

1 commit


25 Apr, 2007

2 commits


12 Apr, 2007

1 commit


16 Mar, 2007

2 commits

  • This should get rid of "atkbd.c: Suprious NAK on isa0060/serio0"
    messages caused by broken MUX implementation. The box does not
    have external PS/2 ports so disabling MUX mode is safe.

    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     
  • The following bug happens when insmoding hp_sdc_mlc.ko:

    HP SDC MLC: Registering the System Domain Controller's HIL MLC.
    BUG: rwlock recursion on CPU#0, hotplug/1814, 00854734
    Backtrace:
    [] _raw_write_lock+0x50/0x88
    [] _write_lock_irqsave+0x14/0x24
    [] hp_sdc_mlc_out+0x38/0x25c [hp_sdc_mlc]
    [] hilse_donode+0x308/0x470 [hil_mlc]
    [] hil_mlcs_process+0x40/0x6c [hil_mlc]
    [] tasklet_action+0x78/0xb8
    [] __do_softirq+0x60/0xcc
    [] __lock_text_end+0x38/0x48
    [] do_cpu_irq_mask+0xf0/0x11c
    [] intr_return+0x0/0xc

    Signed-off-by: Helge Deller
    Signed-off-by: Dmitry Torokhov

    Helge Deller
     

08 Mar, 2007

2 commits


01 Mar, 2007

2 commits


20 Feb, 2007

1 commit

  • * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/dtor/input:
    Input: remove obsolete setup parameters from input drivers
    Input: HIL - fix improper call to release_region()
    Input: hid-lgff - treat devices as joysticks unless told otherwise
    Input: HID - add support for Logitech Formula Force EX
    Input: gpio-keys - switch to common GPIO API
    Input: do not lock device when showing name, phys and uniq
    Input: i8042 - let serio bus suspend ports
    Input: psmouse - properly reset mouse on shutdown/suspend

    Linus Torvalds
     

18 Feb, 2007

3 commits


15 Feb, 2007

1 commit

  • After Al Viro (finally) succeeded in removing the sched.h #include in module.h
    recently, it makes sense again to remove other superfluous sched.h includes.
    There are quite a lot of files which include it but don't actually need
    anything defined in there. Presumably these includes were once needed for
    macros that used to live in sched.h, but moved to other header files in the
    course of cleaning it up.

    To ease the pain, this time I did not fiddle with any header files and only
    removed #includes from .c-files, which tend to cause less trouble.

    Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
    arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
    allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
    configs in arch/arm/configs on arm. I also checked that no new warnings were
    introduced by the patch (actually, some warnings are removed that were emitted
    by unnecessarily included header files).

    Signed-off-by: Tim Schmielau
    Acked-by: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     

13 Feb, 2007

1 commit

  • Many struct file_operations in the kernel can be "const". Marking them const
    moves these to the .rodata section, which avoids false sharing with potential
    dirty data. In addition it'll catch accidental writes at compile time to
    these shared resources.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven