20 Jun, 2009

1 commit

  • The rtc_update_irq() might be called with irqs enabled, if a interrupt
    handler was registered without IRQF_DISABLED. Use
    spin_lock_irqsave/spin_unlock_irqrestore instead of spin_lock/spin_unlock.

    Also update kerneldoc and drivers which do extra work to follow the
    current interface spec, as suggestted by David Brownell.

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

    Atsushi Nemoto
     

19 Jun, 2009

6 commits

  • IRQF_SHARED should not be used with IRQF_DISABLED. There is no in-tree
    user of this driver and only out-of-tree user I know uses a dedicated irq
    line for this RTC.

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

    Atsushi Nemoto
     
  • IRQF_SHARED should not be used with IRQF_DISABLED. This RTC have a
    dedicated irq line to SoC's internal interrupt controller so there is
    no reason to use IRQF_SHARED.

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

    Atsushi Nemoto
     
  • Add support for the Epson RX-8025SA/NB RTC chips. It includes support for
    alarms, periodic interrupts (1 Hz) and clock precision adjustment.

    For clock precision adjustment, the SYSFS file "clock_adjust_ppb" gets
    created in "/sys/class/rtc/rtcX/device". It permits to set and get the
    clock adjustment in ppb (parts per billion), e.g.:

    # echo -183000 > /sys/class/rtc/rtc0/device/clock_adjust_ppb
    # cat /sys/class/rtc/rtc0/device/clock_adjust_ppb
    -183000

    This allows to compensate temperature dependent clock drifts. According
    to the RX8025 SA/NB application manual the frequency and temperature
    characteristics can be approximated using the following equation:

    df = a * (ut - t)**2

    df: Frequency deviation in any temperature
    a : Coefficient = (-35 +-5) * 10**-9
    ut: Ultimate temperature in degree = +25 +-5 degree
    t : Any temperature in degree

    Signed-off-by: Wolfgang Grandegger
    Signed-off-by: Sergei Poselenov
    Signed-off-by: Yuri Tikhonov
    Signed-off-by: Dmitry Rakhchev
    Signed-off-by: Matthias Fuchs
    Acked-by: Jean Delvare
    Signed-off-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wolfgang Grandegger
     
  • Add ds3231 variant. For that, the BBSQI bit position was changed from a
    simple define into a lookup-array as it differs. This also removes
    writing to an unused bit in case of the ds1337.

    Signed-off-by: Wolfram Sang
    Acked-by: David Brownell
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wolfram Sang
     
  • Extend the ds1307 driver to support ds1388 too.

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

    Joakim Tjernlund
     
  • The RTC driver for ds1742 / ds1743 uses a static nvram attribute. This
    patch replaces this static attribute with one nvram attribute for each
    ds174x registered.

    The nvram size is not the same for all types of ds174x. The nvram size is
    accessible as the file size of the nvram attribute in sysfs. With only a
    single nvram attribute, this file size will be incorrect if more than one
    type of ds174x is present on a system. See the comment in the removed
    code below.

    This patch have been tested with linux-2.6.28 and linux-2.6.29-rc5/6 on a
    custom board with one ds1743.

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

    Torsten Ertbjerg Rasmussen
     

15 Jun, 2009

1 commit

  • * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (417 commits)
    MAINTAINERS: EB110ATX is not ebsa110
    MAINTAINERS: update Eric Miao's email address and status
    fb: add support of LCD display controller on pxa168/910 (base layer)
    [ARM] 5552/1: ep93xx get_uart_rate(): use EP93XX_SYSCON_PWRCNT and EP93XX_SYSCON_PWRCN
    [ARM] pxa/sharpsl_pm: zaurus needs generic pxa suspend/resume routines
    [ARM] 5544/1: Trust PrimeCell resource sizes
    [ARM] pxa/sharpsl_pm: cleanup of gpio-related code.
    [ARM] pxa/sharpsl_pm: drop set_irq_type calls
    [ARM] pxa/sharpsl_pm: merge pxa-specific code into generic one
    [ARM] pxa/sharpsl_pm: merge the two sharpsl_pm.c since it's now pxa specific
    [ARM] sa1100: remove unused collie_pm.c
    [ARM] pxa: fix the conflicting non-static declarations of global_gpios[]
    [ARM] 5550/1: Add default configure file for w90p910 platform
    [ARM] 5549/1: Add clock api for w90p910 platform.
    [ARM] 5548/1: Add gpio api for w90p910 platform
    [ARM] 5551/1: Add multi-function pin api for w90p910 platform.
    [ARM] Make ARM_VIC_NR depend on ARM_VIC
    [ARM] 5546/1: ARM PL022 SSP/SPI driver v3
    ARM: OMAP4: SMP: Update defconfig for OMAP4430
    ARM: OMAP4: SMP: Enable SMP support for OMAP4430
    ...

    Linus Torvalds
     

11 Jun, 2009

1 commit

  • I found the PrimeCell/AMBA Bus drivers distrusting the resource
    passed in as part of the struct amba_device abstraction. This
    patch removes all hard coded resource sizes found in the PrimeCell
    drivers and move the responsibility of this definition back to
    the platform/board device definition, which already exist and
    appear to be correct for all in-tree users of these drivers.
    We do this using the resource_size() inline function which was
    also replicated in the only driver using the resource size, so
    that has been changed too. The KMI_SIZE was left in kmi.h in case
    someone likes it. Test-compiled against Versatile and Integrator
    defconfigs, seems to work but I don't posess these boards and
    cannot test them.

    Signed-off-by: Linus Walleij
    Signed-off-by: Russell King

    Linus Walleij
     

29 May, 2009

1 commit


24 May, 2009

1 commit


22 May, 2009

1 commit


21 May, 2009

1 commit


13 May, 2009

1 commit

  • This patch enables the alarm interrupt of TWL4030 RTC to wake up the
    system from suspend. You can test this patch with following command.

    # echo +10 > /sys/class/rtc/rtc0/wakealarm; echo mem > /sys/power/state;

    Signed-off-by: Kim Kyuwon
    Acked-by: David Brownell
    Cc: Kyungmin Park
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kim Kyuwon
     

27 Apr, 2009

1 commit


26 Apr, 2009

1 commit

  • Update the rtc-ep93xx driver to use ioremap'ed addresses.

    This removes the dependency on and properly
    reports the memory addresses used by the driver in /proc/iomem.

    In addition, ep93xx_rtc_init() is updated to use
    platform_driver_probe() instead of platform_driver_register().

    Also, the device_create_file() calls are now properly checked for
    error conditions. The created sysfs files are also now removed
    when the driver is removed.

    The version number for the driver has been bumped at the request
    of Alessandro Zummo.

    Signed-off-by: H Hartley Sweeten
    Acked-by: Alessandro Zummo
    Signed-off-by: Russell King

    Hartley Sweeten
     

22 Apr, 2009

1 commit

  • With no IRQ available/defined, RTC-CMOS driver prints something like:
    rtc0: alarms up to one no, y3k, 114 bytes nvram
    ^^^^
    I guess the following is a bit easier to understand:
    rtc0: no alarms, y3k, 114 bytes nvram

    Signed-off-by: Krzysztof Halasa
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Halasa
     

16 Apr, 2009

1 commit


06 Apr, 2009

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (23 commits)
    sh: sh7785lcr: Map whole PCI address space.
    sh: Fix up DSP context save/restore.
    sh: Fix up number of on-chip DMA channels on SH7091.
    sh: update defconfigs.
    sh: Kill off broken direct-mapped cache mode.
    sh: Wire up ARCH_HAS_DEFAULT_IDLE for cpuidle.
    sh: Add a command line option for disabling I/O trapping.
    sh: Select ARCH_HIBERNATION_POSSIBLE.
    sh: migor: Fix up CEU use flags.
    input: migor_ts: add wakeup support
    rtc: rtc-sh: use set_irq_wake()
    input: sh_keysc: use enable/disable_irq_wake()
    sh: intc: set_irq_wake() support
    sh: intc: install enable, disable and shutdown callbacks
    clocksource: sh_cmt: use remove_irq() and remove clockevent workaround
    sh: ap325 and Migo-R use new sh_mobile_ceu_info flags
    sh: Fix up -Wformat-security whining.
    sh: ap325rxa: Add ov772x support, again.
    sh: Sanitize asm/mmu.h for assembly use.
    sh: Tidy up sh7786 pinmux table.
    ...

    Linus Torvalds
     

04 Apr, 2009

1 commit


03 Apr, 2009

2 commits

  • Compared to the other supported chips, the m41t62 uses a different
    register to set the square wave frequency.

    Signed-off-by: Daniel Glockner
    Cc: Chris Zankel
    Cc: David Brownell
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Glockner
     
  • The v3020 RTC can be connected to GPIOs as well as to memory-like
    interface. Add ability to use GPIO bit-bang for v3020 read-write access.

    [akpm@linux-foundation.org: fix off-by-one in error path]
    Signed-off-by: Mike Rapoport
    Acked-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Rapoport
     

02 Apr, 2009

8 commits


01 Apr, 2009

10 commits