13 Oct, 2007

4 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6: (75 commits)
    PM: merge device power-management source files
    sysfs: add copyrights
    kobject: update the copyrights
    kset: add some kerneldoc to help describe what these strange things are
    Driver core: rename ktype_edd and ktype_efivar
    Driver core: rename ktype_driver
    Driver core: rename ktype_device
    Driver core: rename ktype_class
    driver core: remove subsystem_init()
    sysfs: move sysfs file poll implementation to sysfs_open_dirent
    sysfs: implement sysfs_open_dirent
    sysfs: move sysfs_dirent->s_children into sysfs_dirent->s_dir
    sysfs: make sysfs_root a regular directory dirent
    sysfs: open code sysfs_attach_dentry()
    sysfs: make s_elem an anonymous union
    sysfs: make bin attr open get active reference of parent too
    sysfs: kill unnecessary NULL pointer check in sysfs_release()
    sysfs: kill unnecessary sysfs_get() in open paths
    sysfs: reposition sysfs_dirent->s_mode.
    sysfs: kill sysfs_update_file()
    ...

    Linus Torvalds
     
  • This changes the uevent buffer functions to use a struct instead of a
    long list of parameters. It does no longer require the caller to do the
    proper buffer termination and size accounting, which is currently wrong
    in some places. It fixes a known bug where parts of the uevent
    environment are overwritten because of wrong index calculations.

    Many thanks to Mathieu Desnoyers for finding bugs and improving the
    error handling.

    Signed-off-by: Kay Sievers
    Cc: Mathieu Desnoyers
    Cc: Cornelia Huck
    Signed-off-by: Greg Kroah-Hartman

    Kay Sievers
     
  • Prefix platform modalias strings with "platform:", which
    modprobe config to blacklist alias resolving if userspace
    configures it.

    Send uevents for all platform devices.

    Add MODULE_ALIAS's to: pxa2xx_pcmcia, ds1742 and pcspkr to trigger
    module autoloading by userspace.

    $ modinfo pcspkr
    alias: platform:pcspkr
    license: GPL
    description: PC Speaker beeper driver
    ...

    $ modprobe -n -v platform:pcspkr
    insmod /lib/modules/2.6.23-rc3-g28e8351a-dirty/kernel/drivers/input/misc/pcspkr.ko

    Signed-off-by: Kay Sievers
    Cc: David Brownell
    Cc: Atsushi Nemoto
    Signed-off-by: Greg Kroah-Hartman

    Kay Sievers
     
  • Useless header file with 32 bit and 64 bit variants. Move the
    single useful line to the place where it is used.

    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar
    Signed-off-by: Arjan van de Ven

    Thomas Gleixner
     

10 Oct, 2007

1 commit

  • Three main sets of changes:

    1) dmi_get_system_info() return value should have been marked const,
    since callers should not be changing that data.

    2) const-ify DMI internals, since DMI firmware tables should,
    whenever possible, be marked const to ensure we never ever write to
    that data area.

    3) const-ify DMI API, to enable marking tables const where possible
    in low-level drivers.

    And if we're really lucky, this might enable some additional
    optimizations on the part of the compiler.

    The bulk of the changes are #2 and #3, which are interrelated. #1 could
    have been a separate patch, but it was so small compared to the others,
    it was easier to roll it into this changeset.

    Signed-off-by: Jeff Garzik

    Jeff Garzik
     

29 Sep, 2007

1 commit


26 Sep, 2007

1 commit


25 Sep, 2007

1 commit

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

    Thomas Rohwer
     

12 Sep, 2007

1 commit


07 Sep, 2007

1 commit

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

    Vladimir Shebordaev
     

05 Sep, 2007

2 commits


31 Aug, 2007

1 commit


30 Aug, 2007

4 commits


23 Aug, 2007

1 commit

  • 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
    Cc: Jeff Dike
    Cc: Heiko Carstens
    Cc: Roman Zippel
    Cc: Alan Cox
    Cc: Martin Schwidefsky
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     

01 Aug, 2007

1 commit


29 Jul, 2007

1 commit

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

    Linus Torvalds
     

24 Jul, 2007

3 commits


22 Jul, 2007

1 commit

  • 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
    Cc: Ingo Molnar
    Cc: Dmitry Torokhov
    Signed-off-by: Andrew Morton
    Signed-off-by: Andi Kleen
    Signed-off-by: Linus Torvalds

    Thomas Gleixner
     

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

3 commits

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

    Soeren Sonnenburg
     
  • Signed-off-by: Dmitry Torokhov

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

7 commits

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

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

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

    Semih Hazar
     
  • 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
    Signed-off-by: David Brownell
    Signed-off-by: Dmitry Torokhov

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

    Jan Kratochvil
     
  • 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
     

12 Jul, 2007

1 commit

  • 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
    Cc: Cornelia Huck
    Cc: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Tejun Heo
     

10 Jul, 2007

4 commits