20 Oct, 2007

30 commits

  • Fix the various misspellings of "system", controller", "interrupt" and
    "[un]necessary".

    Signed-off-by: Robert P. J. Day
    Signed-off-by: Adrian Bunk

    Robert P. J. Day
     
  • Signed-off-by: Adrian Bunk

    Patrick Ringl
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (41 commits)
    ACPICA: hw: Don't carry spinlock over suspend
    ACPICA: hw: remove use_lock flag from acpi_hw_register_{read, write}
    ACPI: cpuidle: port idle timer suspend/resume workaround to cpuidle
    ACPI: clean up acpi_enter_sleep_state_prep
    Hibernation: Make sure that ACPI is enabled in acpi_hibernation_finish
    ACPI: suppress uninitialized var warning
    cpuidle: consolidate 2.6.22 cpuidle branch into one patch
    ACPI: thinkpad-acpi: skip blanks before the data when parsing sysfs
    ACPI: AC: Add sysfs interface
    ACPI: SBS: Add sysfs alarm
    ACPI: SBS: Add ACPI_PROCFS around procfs handling code.
    ACPI: SBS: Add support for power_supply class (and sysfs)
    ACPI: SBS: Make SBS reads table-driven.
    ACPI: SBS: Simplify data structures in SBS
    ACPI: SBS: Split host controller (ACPI0001) from SBS driver (ACPI0002)
    ACPI: EC: Add new query handler to list head.
    ACPI: Add acpi_bus_generate_event4() function
    ACPI: Battery: add sysfs alarm
    ACPI: Battery: Add sysfs support
    ACPI: Battery: Misc clean-ups, no functional changes
    ...

    Fix up conflicts in drivers/misc/thinkpad_acpi.[ch] manually

    Linus Torvalds
     
  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
    [NET]: Fix possible dev_deactivate race condition
    [INET]: Justification for local port range robustness.
    [PACKET]: Kill unused pg_vec_endpage() function
    [NET]: QoS/Sched as menuconfig
    [NET]: Fix bug in sk_filter race cures.
    [PATCH] mac80211: make ieee802_11_parse_elems return void

    Linus Torvalds
     
  • Fixes:
    drivers/edac/pasemi_edac: struct pci_device_id is 32 bytes. The last of 1 is:
    0x00 0x00 0x19 0x59 0x00 0x00 0xa0 0x0a 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
    0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
    FATAL: drivers/edac/pasemi_edac: struct pci_device_id is not terminated with a NULL entry!

    Signed-off-by: Stephen Rothwell
    Cc: Douglas Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Rothwell
     
  • Prior to use struct marker in the linux kernel markers, we need to clean
    two drivers which use this structure name.

    Change bonding driver types :
    - struct marker to struct bond_marker.
    - marker_t to bond_marker_t.
    - marker_header to bond_marker_header.
    - marker_header_t to bond_marker_header_t.

    Change qla4xxx struct marker_entry usage :
    - Change struct marker_entry for struct qla4_marker_entry.

    Signed-off-by: Mathieu Desnoyers
    Cc: Chad Tindel
    Cc: Jay Vosburgh
    Cc: David Somayajulu
    Cc: James Bottomley
    Cc: Ravi Anand
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mathieu Desnoyers
     
  • The task_struct->pid member is going to be deprecated, so start
    using the helpers (task_pid_nr/task_pid_vnr/task_pid_nr_ns) in
    the kernel.

    The first thing to start with is the pid, printed to dmesg - in
    this case we may safely use task_pid_nr(). Besides, printks produce
    more (much more) than a half of all the explicit pid usage.

    [akpm@linux-foundation.org: git-drm went and changed lots of stuff]
    Signed-off-by: Pavel Emelyanov
    Cc: Dave Airlie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Emelyanov
     
  • FlashPoint, use BIT instead of BITW

    BITW was an ushort variant of BIT, use BIT instead

    Signed-off-by: Jiri Slaby
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • define global BIT macro

    move all local BIT defines to the new globally define macro.

    Signed-off-by: Jiri Slaby
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: Kumar Gala
    Cc: Dmitry Torokhov
    Cc: Jeff Garzik
    Cc: James Bottomley
    Cc: "Antonino A. Daplas"
    Cc: Russell King
    Acked-by: Ralf Baechle
    Cc: "John W. Linville"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • 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
     
  • amba-pl011, rename BIT macro

    Signed-off-by: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • s2io, rename BIT macro

    BIT macro will be global definiton of (1<
    Cc: Ramkrishna Vepa
    Cc: Rastapur Santosh
    Cc: Sivakumar Subramani
    Cc: Sreenivasa Honnur
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • i2c-pxa, rename BIT macro to PXA_BIT

    BIT macro will be global definiton of (1 << x)

    Signed-off-by: Jiri Slaby
    Cc: Nicolas Pitre
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • This patch fixes errors and warnings pointed out by the checkpatch.pl
    script.

    Antonino Daplas replaced BIT with ENCODE_BIT.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • cyber2000fb, rename BIT macro

    BIT will be global macro for (1 << x)

    Signed-off-by: Jiri Slaby
    Cc: Russell King
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • remove asm/bitops.h includes

    including asm/bitops directly may cause compile errors. don't include it
    and include linux/bitops instead. next patch will deny including asm header
    directly.

    Cc: Adrian Bunk
    Signed-off-by: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • This new version guarantees amb_bit switch in small enough intervals, so that
    the device won't stop working in the middle of a movement anymore. However it
    preserves old (openhaptics) functionality.

    Signed-off-by: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Signed-off-by: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • Wait after disabling device's interrupt until the handler finishes its work if
    still in progress.

    Signed-off-by: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Slaby
     
  • This is the largest patch in the set. Make all (I hope) the places where
    the pid is shown to or get from user operate on the virtual pids.

    The idea is:
    - all in-kernel data structures must store either struct pid itself
    or the pid's global nr, obtained with pid_nr() call;
    - when seeking the task from kernel code with the stored id one
    should use find_task_by_pid() call that works with global pids;
    - when showing pid's numerical value to the user the virtual one
    should be used, but however when one shows task's pid outside this
    task's namespace the global one is to be used;
    - when getting the pid from userspace one need to consider this as
    the virtual one and use appropriate task/pid-searching functions.

    [akpm@linux-foundation.org: build fix]
    [akpm@linux-foundation.org: nuther build fix]
    [akpm@linux-foundation.org: yet nuther build fix]
    [akpm@linux-foundation.org: remove unneeded casts]
    Signed-off-by: Pavel Emelyanov
    Signed-off-by: Alexey Dobriyan
    Cc: Sukadev Bhattiprolu
    Cc: Oleg Nesterov
    Cc: Paul Menage
    Cc: "Eric W. Biederman"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Emelyanov
     
  • is_init() is an ambiguous name for the pid==1 check. Split it into
    is_global_init() and is_container_init().

    A cgroup init has it's tsk->pid == 1.

    A global init also has it's tsk->pid == 1 and it's active pid namespace
    is the init_pid_ns. But rather than check the active pid namespace,
    compare the task structure with 'init_pid_ns.child_reaper', which is
    initialized during boot to the /sbin/init process and never changes.

    Changelog:

    2.6.22-rc4-mm2-pidns1:
    - Use 'init_pid_ns.child_reaper' to determine if a given task is the
    global init (/sbin/init) process. This would improve performance
    and remove dependence on the task_pid().

    2.6.21-mm2-pidns2:

    - [Sukadev Bhattiprolu] Changed is_container_init() calls in {powerpc,
    ppc,avr32}/traps.c for the _exception() call to is_global_init().
    This way, we kill only the cgroup if the cgroup's init has a
    bug rather than force a kernel panic.

    [akpm@linux-foundation.org: fix comment]
    [sukadev@us.ibm.com: Use is_global_init() in arch/m32r/mm/fault.c]
    [bunk@stusta.de: kernel/pid.c: remove unused exports]
    [sukadev@us.ibm.com: Fix capability.c to work with threaded init]
    Signed-off-by: Serge E. Hallyn
    Signed-off-by: Sukadev Bhattiprolu
    Acked-by: Pavel Emelianov
    Cc: Eric W. Biederman
    Cc: Cedric Le Goater
    Cc: Dave Hansen
    Cc: Herbert Poetzel
    Cc: Kirill Korotaev
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Serge E. Hallyn
     
  • The set of functions process_session, task_session, process_group and
    task_pgrp is confusing, as the names can be mixed with each other when looking
    at the code for a long time.

    The proposals are to
    * equip the functions that return the integer with _nr suffix to
    represent that fact,
    * and to make all functions work with task (not process) by making
    the common prefix of the same name.

    For monotony the routines signal_session() and set_signal_session() are
    replaced with task_session_nr() and set_task_session(), especially since they
    are only used with the explicit task->signal dereference.

    Signed-off-by: Pavel Emelianov
    Acked-by: Serge E. Hallyn
    Cc: Kirill Korotaev
    Cc: "Eric W. Biederman"
    Cc: Cedric Le Goater
    Cc: Herbert Poetzl
    Cc: Sukadev Bhattiprolu
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Emelianov
     
  • REQUEST_IRQ is never used, so delete it. In the process get rid of the
    macro FREE_IRQ which makes the code unnecessarily difficult to read.

    Signed-off-by: Fernando Luis Vázquez Cao
    Acked-by: Karsten Keil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fernando Luis Vázquez Cao
     
  • This fixes the hard freeze debugged for AVM C4 cards for the AVM T1 cards.

    Signed-off-by: Karsten Keil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Karsten Keil
     
  • This fixes the hard freeze debugded for AVM C4 cards using the b1dma
    interface.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Karsten Keil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Karsten Keil
     
  • One call was missing in the previous patch.

    Signed-off-by: Karsten Keil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Karsten Keil
     
  • Some external modules like Speakup need to monitor console output.

    This adds a VT notifier that such modules can use to get console output events:
    allocation, deallocation, writes, other updates (cursor position, switch, etc.)

    [akpm@linux-foundation.org: fix headers_check]
    Signed-off-by: Samuel Thibault
    Cc: Dmitry Torokhov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samuel Thibault
     
  • Remove the `clear_50' and `clear_vesa' fields of struct
    ps3av_monitor_quirk, as they're currently unused. We can always re-add
    them when we really need them.

    Signed-off-by: Geert Uytterhoeven
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • 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
     
  • Fix powerpc allmodconfig build: advansys requires virt_to_bus() but powerpc
    doesn't implement it.

    Cc: James Bottomley
    Cc: Paul Mackerras
    Acked-by: Matthew Wilcox
    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     

19 Oct, 2007

10 commits

  • There is a justifying patch for Stephen's patches. Stephen's patches
    disallows using a port range of one single port and brakes the meaning
    of the 'remaining' variable, in some places it has different meaning.
    My patch gives back the sense of 'remaining' variable. It should mean
    how many ports are remaining and nothing else. Also my patch allows
    using a single port.

    I sure we must be able to use mentioned port range, this does not
    restricted by documentation and does not brake current behavior.

    usefull links:
    Patches posted by Stephen Hemminger
    http://marc.info/?l=linux-netdev&m=119206106218187&w=2
    http://marc.info/?l=linux-netdev&m=119206109918235&w=2

    Andrew Morton's comment
    http://marc.info/?l=linux-kernel&m=119248225007737&w=2

    1. Allows using a port range of one single port.
    2. Gives back sense of 'remaining' variable.

    Signed-off-by: Anton Arapov
    Acked-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Anton Arapov
     
  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6:
    pcnet32: remove private net_device_stats structure
    vortex_up should initialize "err"
    pcnet32: remove compile warnings in non-napi mode
    pcnet32: fix non-napi packet reception
    fix EMAC driver for proper napi_synchronize API
    sky2: shutdown cleanup
    napi_synchronize: waiting for NAPI
    forcedeth msi bugfix
    gianfar: fix obviously wrong #ifdef CONFIG_GFAR_NAPI placement
    fs_enet: Update for API changes
    gianfar: remove orphan struct.
    forcedeth: fix rx-work condition in nv_rx_process_optimized() too

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/bart/ide-2.6: (37 commits)
    ide: set drive->autotune in ide_pci_setup_ports()
    triflex: always tune PIO
    opti621: always tune PIO
    cy82c693: always tune PIO
    cs5520: always tune PIO
    alim15x3: always tune PIO
    ide: add IDE_HFLAG_LEGACY_IRQS host flag
    ide: add IDE_HFLAG_SERIALIZE host flag
    ide: add IDE_HFLAG_ERROR_STOPS_FIFO host flag
    piix: add DECLARE_ICH_DEV() macro
    pdc202xx_old: add DECLARE_PDC2026X_DEV() macro
    pdc202xx_new: add DECLARE_PDCNEW_DEV() macro
    aec62xx: no need to disable UDMA in ->init_hwif method for ATP850UF
    ide: remove .init_setup from ide_pci_device_t
    serverworks: remove ->init_setup
    scc_pata: remove ->init_setup
    pdc202xx_old: remove ->init_setup
    pdc202xx_new: remove ->init_setup
    hpt366: remove ->init_setup
    cmd64x: remove ->init_setup
    ...

    Linus Torvalds
     
  • Majority of host drivers using IDE PCI layer set drive->autotune, the only
    exceptions are:

    generic.c
    ns87415.c
    rz1000.c
    trm290.c
    * no ->set_pio_mode method

    it821x.c:
    * if memory allocation fails drive->autotune won't be set
    (but there also won't be ->set_pio_mode method in such case)

    piix.c:
    * MPIIX controller (no ->init_hwif method so also no ->set_pio_mode method)

    However if there is no ->set_pio_mode method there are no changes in behavior
    w.r.t. PIO tuning so always set drive->autotune in ide_pci_setup_ports().

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Since cs5520 uses VDMA best PIO mode was tuned anyway by ide_dma_check()
    but only if DMA was successfully initialized.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • Add IDE_HFLAG_LEGACY_IRQS host flag to tell ide_pci_setup_ports() to set
    hwif->irq to legacy IRQ 14/15 (iff hwif->irq is not already set) and convert
    atiixp, piix, serverworks, sis5513 and slc90e66 host drivers to use it.

    While at it:

    * In piix.c add IDE_HFLAGS_PIIX define and don't use ->init_hwif for MPIIX.

    Acked-by: Sergei Shtylyov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz