19 Oct, 2007

3 commits

  • There is no reason why the .prepare() and .finish() methods in 'struct
    platform_suspend_ops' should take any arguments, since architectures don't use
    these methods' argument in any practically meaningful way (ie. either the
    target system sleep state is conveyed to the platform by .set_target(), or
    there is only one suspend state supported and it is indicated to the PM core
    by .valid(), or .prepare() and .finish() aren't defined at all).  There also
    is no reason why .finish() should return any result.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Pavel Machek
    Cc: Len Brown
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • The name of 'struct pm_ops' suggests that it is related to the power
    management in general, but in fact it is only related to suspend.  Moreover,
    its name should indicate what this structure is used for, so it seems
    reasonable to change it to 'struct platform_suspend_ops'.  In that case, the
    name of the global variable of this type used by the PM core and the names of
    related functions should be changed accordingly.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Pavel Machek
    Cc: Len Brown
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • Move the definition of 'struct pm_ops' and related functions from
    to .

    There are, at least, the following reasons to do that:
    * 'struct pm_ops' is specifically related to suspend and not to the power
    management in general.
    * As long as 'struct pm_ops' is defined in , any modification of it
    causes the entire kernel to be recompiled, which is unnecessary and annoying.
    * Some suspend-related features are already defined in , so it
    is logical to move the definition of 'struct pm_ops' into there.
    * 'struct hibernation_ops', being the hibernation-related counterpart of
    'struct pm_ops', is defined in .

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Pavel Machek
    Cc: Len Brown
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     

18 Oct, 2007

1 commit


17 Oct, 2007

14 commits

  • All asm/ipc.h files do only #include .

    This patch therefore removes all include/asm-*/ipc.h files and moves the
    contents of include/asm-generic/ipc.h to include/linux/ipc.h.

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

    Adrian Bunk
     
  • Slab constructors currently have a flags parameter that is never used. And
    the order of the arguments is opposite to other slab functions. The object
    pointer is placed before the kmem_cache pointer.

    Convert

    ctor(void *object, struct kmem_cache *s, unsigned long flags)

    to

    ctor(struct kmem_cache *s, void *object)

    throughout the kernel

    [akpm@linux-foundation.org: coupla fixes]
    Signed-off-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • Stop using magic macros for screen_info structure members.

    Signed-off-by: H. Peter Anvin

    H. Peter Anvin
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: (40 commits)
    kbuild: introduce ccflags-y, asflags-y and ldflags-y
    kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP
    kbuild: enable use of AFLAGS and CFLAGS on commandline
    kbuild: enable 'make AFLAGS=...' to add additional options to AS
    kbuild: fix AFLAGS use in h8300 and m68knommu
    kbuild: check for wrong use of CFLAGS
    kbuild: enable 'make CFLAGS=...' to add additional options to CC
    kbuild: fix up CFLAGS usage
    kbuild: make modpost detect unterminated device id lists
    kbuild: call export_report from the Makefile
    kbuild: move Kai Germaschewski to CREDITS
    kconfig/menuconfig: distinguish between selected-by-another options and comments
    kconfig: tristate choices with mixed tristate and boolean values
    include/linux/Kbuild: remove duplicate entries
    kbuild: kill backward compatibility checks
    kbuild: kill EXTRA_ARFLAGS
    kbuild: fix documentation in makefiles.txt
    kbuild: call make once for all targets when O=.. is used
    kbuild: pass -g to assembler under CONFIG_DEBUG_INFO
    kbuild: update _shipped files for kconfig syntax cleanup
    ...

    Fix up conflicts in arch/um/sys-{x86_64,i386}/Makefile manually.

    Linus Torvalds
     
  • This patch removes lcdcon1 register field from the s3c2410fb_display as all
    bits are calculated from other fields.

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

    Krzysztof Helt
     
  • This patch adds pixelclock field to the s3c2410fb_display structure and make
    use of it in the driver.

    The Bast machine defined 9 modes but pixclock and margin values are defined
    only for the 640x480 modes so I removed other modes.

    This patch also fixes wrong display type constant for the SMDK2440 board.

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

    Krzysztof Helt
     
  • This patch removes unused lcdcon2 and lcdcon3 register value
    from the s3c2410fb_display structure.

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

    Krzysztof Helt
     
  • This patch adds synchronization pulse lenght fields to
    the s3c2410fb_display structure and makes use of them
    in the driver.

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

    Krzysztof Helt
     
  • This patch adds vertical margins values to all
    s3c24xx platform.

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

    Krzysztof Helt
     
  • This patch removes unused lcdcon3 register from the
    s3c2410fb_display structure.

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

    Krzysztof Helt
     
  • This patch adds margins fields to the s3c2410fb_display
    structure. It also sets display type and horizontal
    margins in all platform files that use the s3c2410fb
    driver.

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

    Krzysztof Helt
     
  • This patch adds a new structure to describe and handle
    more than one panel (display mode) for the s3c2410 framebuffer.
    This structure is added after the pxafb driver.

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

    Krzysztof Helt
     
  • We have had complaints where a threaded application is left in a bad state
    after one of it's threads is killed when we hit a VM: out_of_memory
    condition.

    Killing just one of the process threads can leave the application in a bad
    state, whereas killing the entire process group would allow for the
    application to restart, or be otherwise handled, and makes it very obvious
    that something has gone wrong.

    This change allows the entire process group to be taken down, rather
    than just the one thread.

    Signed-off-by: Will Schmidt
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Russell King
    Cc: Ian Molton
    Cc: Haavard Skinnemoen
    Cc: Mikael Starvik
    Cc: David Howells
    Cc: Andi Kleen
    Cc: "Luck, Tony"
    Cc: Hirokazu Takata
    Cc: Geert Uytterhoeven
    Cc: Roman Zippel
    Cc: Ralf Baechle
    Cc: Kyle McMartin
    Cc: Matthew Wilcox
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: Heiko Carstens
    Cc: Martin Schwidefsky
    Cc: Paul Mundt
    Cc: Kazumoto Kojima
    Cc: Richard Curnow
    Cc: William Lee Irwin III
    Cc: "David S. Miller"
    Cc: Chris Zankel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Will Schmidt
     
  • Identical handlers of PTRACE_DETACH go into ptrace_request().
    Not touching compat code.
    Not touching archs that don't call ptrace_request.

    Signed-off-by: Alexey Dobriyan
    Acked-by: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     

16 Oct, 2007

11 commits


15 Oct, 2007

1 commit

  • The variable CFLAGS is a wellknown variable and the usage by
    kbuild may result in unexpected behaviour.
    On top of that several people over time has asked for a way to
    pass in additional flags to gcc.

    This patch replace use of CFLAGS with KBUILD_CFLAGS all over the
    tree and enabling one to use:
    make CFLAGS=...
    to specify additional gcc commandline options.

    One usecase is when trying to find gcc bugs but other
    use cases has been requested too.

    Patch was tested on following architectures:
    alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k

    Test was simple to do a defconfig build, apply the patch and check
    that nothing got rebuild.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     

14 Oct, 2007

1 commit

  • Switch the tps65010 driver into a "new-style" I2C driver, and convert all
    of its in-tree users (board support for OSK, H2, H3) accordingly.

    That accounts for most of the board-specific code in this driver; the
    rest of that code is now moved into board-specific initcalls.

    Also remove some of the many now-superfluous #includes.

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     

13 Oct, 2007

9 commits

  • Russell King
     
  • Signed-off-by: Russell King

    Russell King
     
  • Newer versions of binutils support --build-id, which adds an ELF
    note section called ".note.gnu.build-id" to the output. On the ARM
    kernel build, because there is no explicit mention of this section
    in the shipped ld script, this section is placed at vaddr 0x00000000
    (whereas the normal kernel text/data typically starts at vaddr
    0xc0008000), causing the output of objcopy (Image) to produce a 3G+
    file.

    This patch makes objcopy strip the .note.gnu.build-id section from
    the Image file along with all other note sections, which fixes the
    build.

    Signed-off-by: Lennert Buytenhek
    Signed-off-by: Russell King

    Lennert Buytenhek
     
  • This patch resolves a kexec boot failure that can occur because
    no ATAGs are passed in to the kexec'd kernel. Currently the
    newly-kexec'd kernel may fail if it requires specific ATAGs, or
    it may fail because the fixed memory location at which it expects
    to find the ATAGs may contain random data instead of ATAGs.

    The patch ensures that any ATAGs passed to the current kernel
    at boot time are copied to a static buffer, and are copied back
    when kexec copies the new kernel into place. Thus the new
    kernel sees the same ATAGs from kexec and the boot loader.

    The boot parameters are copied without regard to type, content,
    or length -- this patch's scope is limited soley to saving and
    restoring a fixed-size block of memory containing the kernel's
    boot parameters. Additional functionality to examine, alter, or
    replace the ATAGs (using kexec, for example) can be implemented
    by manipulating the static buffer containing the preserved ATAGs.

    Note: the size of the buffer (1.5KB) is selected to comfortably
    hold one of each ATAG type, including a maximum-length command
    line and the maximum number of ATAG_MEM structures currently
    supported by the kernel. Should an ATAG list exceed that limit,
    the list will be silently truncated to that limit (to do other-
    wise at that point in the boot process would make a simple
    problem exceedingly complicated).

    [Note: this is the same patch as 4579, modified to accomodate
    the ATAG changes introduced in 2.6.23]

    Signed-off-by: Mike Westerhof
    Signed-off-by: Russell King

    Mike Westerhof
     
  • consistent_sync() is used to handle the cache maintainence issues with
    DMA operations. Since we've now removed the misuse of this function
    from the two MTD drivers, rename it to prevent future mis-use.

    Signed-off-by: Russell King

    Russell King
     
  • This patch adds support for the Cirrus Logic EDB9307, an evaluation
    board based on the Cirrus Logic EP9307 SoC, which features amongst
    other things 64M RAM, 32M NOR flash, 3 USB host ports, audio in/out,
    two serial ports and a 10/100 ethernet interface.

    Signed-off-by: Herbert Valerio Riedel
    Acked-by: Lennert Buytenhek
    Signed-off-by: Russell King

    Herbert Valerio Riedel
     
  • Fix the IRQ numbers of the CF and SDI interface on the S3C2412
    and S3C2413. Add support to handle these IRQs properly and
    ensure that the SDI controller platform device is correctly
    renumbered.

    Signed-off-by: Ben Dooks
    Signed-off-by: Russell King

    Ben Dooks
     
  • As a consequence registers are now accessed with __raw_{read,write}[bl].

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Russell King

    Uwe Kleine-König
     
  • Up to now only board-a9m9750dev.c used GPIOs. It just wrote directly into the
    corresponding registers. Now it properly reserves the gpio and uses the API
    function to configure it.

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Russell King

    Uwe Kleine-König