12 Feb, 2009

2 commits


06 Feb, 2009

2 commits


16 Jan, 2009

3 commits

  • A triggering RTC alarm should be able to power on a device that has been
    powered off. This patch enables that on twl4030 by not masking the alarm
    interrupt at shutdown.

    Signed-off-by: Matti Halme
    Signed-off-by: Alessandro Zummo
    Acked-by: David Brownell
    Cc: Tony Lindgren
    Cc: Samuel Ortiz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matti Halme
     
  • Fix these build errors:

    CC drivers/rtc/rtc-pxa.o
    drivers/rtc/rtc-pxa.c: In function `pxa_rtc_init':
    drivers/rtc/rtc-pxa.c:472: error: implicit declaration of function `cpu_is_pxa27x'
    drivers/rtc/rtc-pxa.c:472: error: implicit declaration of function `cpu_is_pxa3xx'

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

    Antonio Ospite
     
  • - implement alarm_irq_enable
    - return correct error code when registering fails

    [dbrownell@users.sourceforge.net: build fixes, force 1/sec irqs]
    Signed-off-by: Alessandro Zummo
    Signed-off-by: David Brownell
    Cc: Tony Lindgren
    Cc: Samuel Ortiz
    Cc: rtc-linux@googlegroups.com
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     

11 Jan, 2009

1 commit


10 Jan, 2009

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6:
    parisc: export length of os_hpmc vector
    parisc: fix kernel crash (protection id trap) when compiling ruby1.9
    parisc: Use DEFINE_SPINLOCK
    parisc: add uevent helper for parisc bus
    parisc: fix ipv6 checksum
    parisc: quiet palo not-found message from "which"
    parisc: Replace NR_CPUS in parisc code
    parisc: trivial fixes
    parisc: fix braino in commit adding __space_to_prot
    parisc: factor out sid to protid conversion
    parisc: use leX_to_cpu in place of __fswabX
    parisc: fix GFP_KERNEL use while atomic in unwinder
    parisc: remove dead BIO_VMERGE_BOUNDARY and BIO_VMERGE_MAX_SIZE definitions
    parisc: set_time() catch errors
    parisc: use the new byteorder headers
    parisc: drivers/parisc/: make code static
    parisc: lib/: make code static

    Linus Torvalds
     

09 Jan, 2009

2 commits

  • Remove RTC register value checks from the rtc-ds1307 probe() function.
    They were left over from the legacy style I2C driver, which had to defend
    against finding a non-RTC chip when the driver was probed.

    Also fix a minor glitch in the alarm support: DS1307 chips don't have
    alarms, so name those methods after one of the chips which actually *do*
    have alarms (DS1337).

    Signed-off-by: Jüri Reitel
    Signed-off-by: David Brownell
    Cc: Sebastien Barre
    Cc: Alessandro Zummo
    Acked-by: Jean Delvare
    Cc: Rodolfo Giometti
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jüri Reitel
     
  • Change i2c access functions to SMBus access functions in order to use the
    ds1307 with SMBus adapter.

    Signed-off-by: Sebastien Barre
    Acked-by: David Brownell
    Tested-by: David Brownell
    Acked-by: Alessandro Zummo
    Acked-by: Jean Delvare
    Cc: Rodolfo Giometti
    Tested-by: Sebastien Barre
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    BARRE Sebastien
     

08 Jan, 2009

1 commit

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (24 commits)
    trivial: chack -> check typo fix in main Makefile
    trivial: Add a space (and a comma) to a printk in 8250 driver
    trivial: Fix misspelling of "firmware" in docs for ncr53c8xx/sym53c8xx
    trivial: Fix misspelling of "firmware" in powerpc Makefile
    trivial: Fix misspelling of "firmware" in usb.c
    trivial: Fix misspelling of "firmware" in qla1280.c
    trivial: Fix misspelling of "firmware" in a100u2w.c
    trivial: Fix misspelling of "firmware" in megaraid.c
    trivial: Fix misspelling of "firmware" in ql4_mbx.c
    trivial: Fix misspelling of "firmware" in acpi_memhotplug.c
    trivial: Fix misspelling of "firmware" in ipw2100.c
    trivial: Fix misspelling of "firmware" in atmel.c
    trivial: Fix misspelled firmware in Kconfig
    trivial: fix an -> a typos in documentation and comments
    trivial: fix then -> than typos in comments and documentation
    trivial: update Jesper Juhl CREDITS entry with new email
    trivial: fix singal -> signal typo
    trivial: Fix incorrect use of "loose" in event.c
    trivial: printk: fix indentation of new_text_line declaration
    trivial: rtc-stk17ta8: fix sparse warning
    ...

    Linus Torvalds
     

07 Jan, 2009

15 commits

  • 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
     
  • This patch fixes a bunch of irq checking misuses. Most drivers were
    getting irq via platform_get_irq(), which returns -ENXIO or r->start.

    rtc-cmos.c is special. It is using PNP and platform bindings. Hopefully
    nobody is using PNP IRQ 0 for RTC. So the changes should be safe.

    rtc-sh.c is using platform_get_irq, but was storing a result into an
    unsigned type, then was checking for < 0. This is fixed now.

    Signed-off-by: Anton Vorontsov
    Cc: Alessandro Zummo
    Acked-by: David Brownell
    Acked-by: Paul Mundt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anton Vorontsov
     
  • Acked-by: Alessandro Zummo
    Acked-By: Greg Kroah-Hartman
    Signed-off-by: Kay Sievers
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kay Sievers
     

06 Jan, 2009

3 commits


05 Jan, 2009

1 commit

  • Add standard interfaces for alarm/update irqs enabling. Drivers are no
    more required to implement equivalent ioctl code as rtc-dev will provide
    it.

    UIE emulation should now be handled correctly and will work even for those
    RTC drivers who cannot be configured to do both UIE and AIE.

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

    Alessandro Zummo
     

31 Dec, 2008

1 commit

  • * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (407 commits)
    [ARM] pxafb: add support for overlay1 and overlay2 as framebuffer devices
    [ARM] pxafb: cleanup of the timing checking code
    [ARM] pxafb: cleanup of the color format manipulation code
    [ARM] pxafb: add palette format support for LCCR4_PAL_FOR_3
    [ARM] pxafb: add support for FBIOPAN_DISPLAY by dma braching
    [ARM] pxafb: allow pxafb_set_par() to start from arbitrary yoffset
    [ARM] pxafb: allow video memory size to be configurable
    [ARM] pxa: add document on the MFP design and how to use it
    [ARM] sa1100_wdt: don't assume CLOCK_TICK_RATE to be a constant
    [ARM] rtc-sa1100: don't assume CLOCK_TICK_RATE to be a constant
    [ARM] pxa/tavorevb: update board support (smartpanel LCD + keypad)
    [ARM] pxa: Update eseries defconfig
    [ARM] 5352/1: add w90p910-plat config file
    [ARM] s3c: S3C options should depend on PLAT_S3C
    [ARM] mv78xx0: implement GPIO and GPIO interrupt support
    [ARM] Kirkwood: implement GPIO and GPIO interrupt support
    [ARM] Orion: share GPIO IRQ handling code
    [ARM] Orion: share GPIO handling code
    [ARM] s3c: define __io using the typesafe version
    [ARM] S3C64XX: Ensure CPU_V6 is selected
    ...

    Linus Torvalds
     

30 Dec, 2008

1 commit


29 Dec, 2008

1 commit

  • As Nicolas and Russell pointed out, CLOCK_TICK_RATE is no more
    a constant on PXA when multiple processors and platforms are
    selected, change TIMER_FREQ in rtc-sa1100.c into a variable.

    Since the code to decide the clock tick rate is re-used from
    timer.c, introduce a common get_clock_tick_rate() for this.

    Signed-off-by: Eric Miao
    Acked-by: Nicolas Pitre

    Eric Miao
     

24 Dec, 2008

1 commit

  • This patch for the rtc-isl1208 driver makes it reject invalid dates.

    Signed-off-by: Chris Elston
    [a.zummo@towertech.it: added comment explaining the check]
    Signed-off-by: Alessandro Zummo
    Cc: Hebert Valerio Riedel
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chris Elston
     

16 Dec, 2008

1 commit


11 Dec, 2008

2 commits


03 Dec, 2008

1 commit


02 Dec, 2008

1 commit

  • The AT91CAP9 revC CPU has a few differences over the previous,
    revB CPU which was distributed in small quantities only (revA was
    an internal Atmel product only).

    This patch adds the detection routines to recognize the different
    AT91CAP9 revisions (based on the PMC subsystem version number), and
    uses them to:
    - activate a workaround for the external interrupts levels
    (on revB CPUs)
    - set the UDPHS_BYPASS bit (on revB CPUs)
    - set AT91_GPBR register address to the correct offset
    (0xfffffd50 on revB, 0xfffffd60 on revC)

    For debugging usage, the CPU revision can be found in /proc/cpuinfo
    on the 'Revision' line.

    This patch is extracted from Andrew Victor's -at91 patch (2.6.27-at91.patch)
    where it has been tested for the last 6 months.

    Signed-off-by: Stelian Pop
    Signed-off-by: Andrew Victor
    Signed-off-by: Russell King

    Stelian Pop