07 Jan, 2009

40 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: (237 commits)
    Staging: android: binder: fix build errors
    Staging: android: add lowmemorykiller driver
    Staging: android: remove dummy android.c driver
    Staging: android: timed_gpio: Rename android_timed_gpio to timed_gpio
    Staging: android: add timed_gpio driver
    Staging: android: add ram_console driver
    Staging: android: add logging driver
    staging: android: binder: Fix use of euid
    Staging: android: binder: Fix gcc warnings about improper format specifiers for size_t in printk
    Staging: android: add binder driver
    Staging: add android framework
    Staging: epl: fix netdev->priv b0rkage
    Staging: epl: hr timers all run in hard irq context now
    Staging: epl: run Lindent on *.c files
    Staging: epl: run Lindent on *.h files
    Staging: epl: run Lindent on all user/*.h files
    Staging: epl: run Lindent on all kernel/*.h files
    Staging: add epl stack
    Staging: frontier: fix compiler warnings
    Staging: frontier: remove unused alphatrack_sysfs.c file
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (60 commits)
    uio: make uio_info's name and version const
    UIO: Documentation for UIO ioport info handling
    UIO: Pass information about ioports to userspace (V2)
    UIO: uio_pdrv_genirq: allow custom irq_flags
    UIO: use pci_ioremap_bar() in drivers/uio
    arm: struct device - replace bus_id with dev_name(), dev_set_name()
    libata: struct device - replace bus_id with dev_name(), dev_set_name()
    avr: struct device - replace bus_id with dev_name(), dev_set_name()
    block: struct device - replace bus_id with dev_name(), dev_set_name()
    chris: struct device - replace bus_id with dev_name(), dev_set_name()
    dmi: struct device - replace bus_id with dev_name(), dev_set_name()
    gadget: struct device - replace bus_id with dev_name(), dev_set_name()
    gpio: struct device - replace bus_id with dev_name(), dev_set_name()
    gpu: struct device - replace bus_id with dev_name(), dev_set_name()
    hwmon: struct device - replace bus_id with dev_name(), dev_set_name()
    i2o: struct device - replace bus_id with dev_name(), dev_set_name()
    IA64: struct device - replace bus_id with dev_name(), dev_set_name()
    i7300_idle: struct device - replace bus_id with dev_name(), dev_set_name()
    infiniband: struct device - replace bus_id with dev_name(), dev_set_name()
    ISDN: struct device - replace bus_id with dev_name(), dev_set_name()
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: (41 commits)
    scc_pata: make use of scc_dma_sff_read_status()
    ide-dma-sff: factor out ide_dma_sff_write_status()
    ide: move read_sff_dma_status() method to 'struct ide_dma_ops'
    ide: don't set hwif->dma_ops in init_dma() method
    Resurrect IT8172 IDE controller driver
    piix: sync ich_laptop[] with ata_piix.c
    ide: update warm-plug HOWTO
    ide: fix ide_port_scan() to do ACPI setup after initializing request queues
    ide: remove now redundant ->cur_dev checks
    ide: remove unused ide_hwif_t.sg_mapped field
    ide: struct ide_atapi_pc - remove unused fields and update documentation
    ide: remove superfluous hwif variable assignment from ide_timer_expiry()
    ide: use ide_pci_is_in_compatibility_mode() helper in setup-pci.c
    ide: make "paranoia" ->handler check in ide_intr() more strict
    ide-cd: convert to ide-atapi facilities
    ide-cd: start DMA before sending the actual packet command
    ide-cd: wait for DRQ to get set per default
    ide: Fix drive's DWORD-IO handling
    ide: add port and host iterators
    ide: dynamic allocation of device structures
    ...

    Linus Torvalds
     
  • Use del_timer_sync() instead of del_timer() to make sure the timer won't
    be running when we return from parport_wait_event(), because this would
    crash due to destruction of timer_list.

    This is untested and just based on a code review. Just think about the
    following sequence of events:

    - add_timer()

    - down_interruptible() is interrupted by a signal.

    - we enter the timer callback handler on another CPU.

    - del_timer(), but the timer callback is still running.

    - eturn from parport_wait_even, which destroys the automatic variable
    "timer" while the callback is running on another CPU.

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

    Michael Buesch
     
  • Signed-off-by: Ben Woodard
    Signed-off-by: Mauro Carvalho Chehab
    Cc: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mauro Carvalho Chehab
     
  • EDAC driver for i5400 MCH (Seaburg)

    This driver adds support for i5400 MCH chipset.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Ben Woodard
    Cc: Doug Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mauro Carvalho Chehab
     
  • All other compatibles that are uniquely identifying the processor use a
    prefix of the form fsl,mpc85...'. We add support for it so we can
    deprecate the older 'fsl,85...' that was improperly used here.

    Additionally added mpc8536 & mpc8560 to the compatible lists.

    This patch is based on Nate's 8572 patch.

    Signed-off-by: Kumar Gala
    Signed-off-by: Doug Thompson
    Acked-by: Dave Jiang
    Cc: Nate Case
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kumar Gala
     
  • This patch is part of a larger patch series which will remove the "char
    bus_id[20]" name string from struct device. The device name is managed in
    the kobject anyway, and without any size limitation, and just needlessly
    copied into "struct device".

    [akpm@linux-foundation.org: coding-style fixes]
    Acked-by: Greg Kroah-Hartman
    Acked-by: Doug Thompson
    Signed-off-by: Kay Sievers
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kay Sievers
     
  • Use the newly introduced pci_ioremap_bar() function in drivers/edac.
    pci_ioremap_bar() just takes a pci device and a bar number, with the goal
    of making it really hard to get wrong, while also having a central place
    to stick sanity checks.

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

    Arjan van de Ven
     
  • As a non-atomic value, it's only safe to look at entropy_count when the
    pool lock is held, so we move the BUG_ON inside the lock for correctness.

    Also remove the spurious comment. It's ok for entropy_count to
    temporarily exceed POOLBITS so long as it's left in a consistent state
    when the lock is released.

    This is a more correct, simple, and idiomatic fix for the bug in
    8b76f46a2db. I've left the reorderings introduced by that patch in place
    as they're harmless, even though they don't properly deal with potential
    atomicity issues.

    Signed-off-by: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     
  • Signed-off-by: Ilpo Järvinen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ilpo Järvinen
     
  • Remove excess kernel-doc notation from rio header and driver:

    Warning(include/linux/rio_drv.h:399): Excess function parameter or struct member 'buffer' description in 'rio_get_inb_message'

    Signed-off-by: Randy Dunlap
    Cc: Matt Porter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • The code to draw penguin logos always uses some properties of the main logo.
    This is incorrect if additional logos (CONFIG_FB_LOGO_EXTRA=y) have different
    types than the main logo, which causes corrupted logo images.

    http://bugzilla.kernel.org/show_bug.cgi?id=12181

    Hence skip additional logos that are not compatible with the main logo.

    Technically, it's possible to draw multiple logos of different types on
    truecolor displays, but this would complicate the (already quite
    complicated) logo drawing code even more.

    This patch fixes a problem with Debian's linux-image-2.6.26-1-powerpc64
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508173

    Signed-off-by: Geert Uytterhoeven
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • unsigned ptr cannot be negative

    Signed-off-by: Roel Kluin
    Cc: Krzysztof Helt
    Cc: Ben Dooks
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    roel kluin
     
  • Fix this sparse warnings:

    drivers/video/intelfb/intelfbdrv.c:1497:3: warning: returning void-valued expression
    drivers/video/intelfb/intelfbdrv.c:1525:3: warning: returning void-valued expression
    drivers/video/intelfb/intelfbdrv.c:1544:3: warning: returning void-valued expression
    drivers/video/intelfb/intelfbdrv.c:1558:3: warning: returning void-valued expression

    Signed-off-by: Hannes Eder
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hannes Eder
     
  • Fix this sparse warnings:

    drivers/video/i810/i810_accel.c:305:3: warning: returning void-valued expression
    drivers/video/i810/i810_accel.c:331:3: warning: returning void-valued expression
    drivers/video/i810/i810_accel.c:370:3: warning: returning void-valued expression

    Signed-off-by: Hannes Eder
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hannes Eder
     
  • Fix this sparse warnings:

    drivers/video/neofb.c:1456:4: warning: returning void-valued expression
    drivers/video/neofb.c:1464:3: warning: returning void-valued expression

    Signed-off-by: Hannes Eder
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hannes Eder
     
  • Fix this sparse warning:

    drivers/video/pm3fb.c:543:3: warning: returning void-valued expression

    Signed-off-by: Hannes Eder
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hannes Eder
     
  • Fix this sparse warnings:

    drivers/video/via/viafbdev.c:871:3: warning: returning void-valued expression
    drivers/video/via/viafbdev.c:938:3: warning: returning void-valued expression
    drivers/video/via/viafbdev.c:995:3: warning: returning void-valued expression

    Signed-off-by: Hannes Eder
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hannes Eder
     
  • Fix this sparse warnings:

    drivers/video/nvidia/nv_accel.c:304:3: warning: returning void-valued expression
    drivers/video/nvidia/nv_accel.c:323:3: warning: returning void-valued expression

    Signed-off-by: Hannes Eder
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hannes Eder
     
  • unsigned var->pixclock cannot be less than 0

    Signed-off-by: Roel Kluin
    Cc: Krzysztof Helt
    Cc: Thomas Bogendoerfer
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    roel kluin
     
  • drivers/video/carminefb.c:171:41: warning: cast to restricted __be32

    Signed-off-by: Harvey Harrison
    Cc: Sebastian Siewior
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Harvey Harrison
     
  • __FUNCTION__ is gcc-specific, use __func__

    Signed-off-by: Harvey Harrison
    Acked-by: Bryan Wu
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Harvey Harrison
     
  • When I viewed drivers/video/modedb.c, I noticed a very old typo already
    contained in 2.6.0.

    This typo remained unheeded at least 5 years. Clear evidence of its
    importance. ;)

    Acked-by: Geert Uytterhoeven
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jiri Moravec
     
  • Use the newly introduced pci_ioremap_bar() function in drivers/video.
    pci_ioremap_bar() just takes a pci device and a bar number, with the goal
    of making it really hard to get wrong, while also having a central place
    to stick sanity checks.

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

    Arjan van de Ven
     
  • Minor updates to the pca953x GPIO expander driver: handle several more
    compatible parts, and stop assuming that the I2C layer's return codes are
    garbage (that's now been fixed).

    Signed-off-by: David Brownell
    Cc: Eric Miao
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • Provide a static debounce configuration mechanism for twl4030 GPIOs,
    replacing the previous dynamic one. The single user of that mechanism was
    for MMC card detect debouncing.

    Boards can provide a bitmask saying which GPIOs to debounce (30 msec).
    It's always enabled for pins with the MMC card-detect/VMMCx link active,
    so most boards won't need to set the debounce mask.

    This is a net code shrink, including runtime footprint.

    Signed-off-by: David Brownell
    Signed-off-by: Tony Lindgren
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     
  • rtc is clearly does not satisfy IS_ERR at the point where it is tested, so
    I have changed the test to consider the just initialized rtc->rtc_dev.

    The semantic match that finds the problem is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @match exists@
    expression x, E;
    identifier fld;
    position p1,p2;
    @@

    (
    x = E;
    |
    x = E
    |
    x@p1->fld
    ... when != x = E
    IS_ERR(x@p2)
    ... when any
    )

    @other_match exists@
    expression match.x, E1, E2;
    position match.p1,match.p2;
    @@

    x = E1
    ... when != x = E2
    when != x@p1
    x@p2

    @ script:python depends on !other_match@
    p1 << match.p1;
    p2 << match.p2;
    @@

    print "* file %s dereference %s test %s" % (p1[0].file,p1[0].line,p2[0].line)
    //

    Signed-off-by: Julia Lawall
    Acked-by: Alessandro Zummo
    Cc: David Brownell
    Cc: Bryan Wu
    Cc: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Julia Lawall
     
  • Driver for the on-chip RTC found in some of Marvell's SoCs such as the
    Kirkwood 88F6281 and 88F6192 devices.

    Signed-off-by: Saeed Bishara
    Signed-off-by: Lennert Buytenhek
    Signed-off-by: Nicolas Pitre
    Signed-off-by: Alessandro Zummo
    Cc: David Brownell
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Saeed Bishara
     
  • Fixes a few issues with the rtc-ds1216 driver

    - use rtc_valid_tm

    - use platform_driver_probe

    - fix init sequence - it was using rtc_unregister_driver where not
    needed. I also added resource_size and removed an useless pointer
    assignment.

    Signed-off-by: Alessandro Zummo
    Tested-by: Thomas Bogendoerfer
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • Add support for RTC in TX4939 SoC.

    Signed-off-by: Atsushi Nemoto
    Acked-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     
  • Drivers should only need to implement either set_mmss (counter based RTCs)
    or set_time (most RTCs). The RTC subsystem will handle them
    appropriately.

    Signed-off-by: Alessandro Zummo
    Cc: Kumar Gala
    Cc: David Brownell
    Cc: Lennert Buytenhek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • - no changelogs in code
    - no banners
    - use local buffers
    - fix probe sequence
    - do not init .driver.bus

    Signed-off-by: Alessandro Zummo
    Cc: Dennis Aberilla
    Acked-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • - no changelogs in code
    - no banners
    - use local buffers
    - fix probe sequence
    - fixed style issues
    - fix spi_write call
    - removed old debug code

    replaces http://patchwork.ozlabs.org/patch/9421/
    and http://patchwork.ozlabs.org/patch/9455/

    Signed-off-by: Alessandro Zummo
    Acked-by: David Brownell
    Cc: Raphael Assenat
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • Simple driver which uses the Au1xxx Time-Of-Year counter (counter0)
    as a 1Hz RTC.

    [akpm@linux-foundation.org: repair Kconfig]
    Signed-off-by: Manuel Lauss
    Acked-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Manuel Lauss
     
  • Remove double spaces and adds some suggestions. It also fixes the
    descriptions of options that are no more available as modules.

    Signed-off-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • Small fixes for the ds1390 driver

    - fixed initialization of the spi device
    - added missing includes
    - removed printks
    - removed useless wrappers for rtc ops
    - removed dead code

    Signed-off-by: Alessandro Zummo
    Cc: Mark Jackson
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • Small fixes for the pxa27x/pxa3xx driver

    - use platform_driver_probe
    - fixed exit paths
    - fixed probe sequence
    - added missing include
    - using linux/io.h instead of asm/io.h

    Signed-off-by: Alessandro Zummo
    Tested-by: Robert Jarzmik
    Cc: Jonathan Cameron
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • With PXA27x and above, a new RTC hardware block was added in addition to
    the legacy one which is also found on the SA1100 SOC family. This second
    RTC block is called "wristwatch" and "periodic interrupt" and works
    independently from the other RTC block.

    The driver offers provides :
    - a 1Hz ticking clock
    - a periodic alarm, in the 1Hz to 1000Hz range
    - a one shot alarm

    Signed-off-by: Robert Jarzmik
    Cc: Jonathan Cameron
    Signed-off-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robert Jarzmik
     
  • Move the power of 2 check on frequencies down into individual rtc drivers

    This is to allow for non power of 2 real time clock periodic interrupts
    such as those on the pxa27x to be found in the new pxa27x-rtc driver

    Signed-off-by: Jonathan Cameron
    Signed-off-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jonathan Cameron