04 Jul, 2013

3 commits

  • This chip has a control register and can prevent altering saved clock.
    Without this patch we could have:

    (arm)root@pac14:~# date
    Tue May 21 03:08:27 MSK 2013
    (arm)root@pac14:~# /etc/init.d/hwclock.sh show
    Tue May 21 11:13:58 2013 -0.067322 seconds
    (arm)root@pac14:~# /etc/init.d/hwclock.sh stop
    [info] Saving the system clock.
    [info] Hardware Clock updated to Tue May 21 03:09:01 MSK 2013.
    (arm)root@pac14:~# /etc/init.d/hwclock.sh show
    Tue May 21 11:14:15 2013 -0.624272 seconds

    The patch enables write access to rtc before the driver tries to write
    time and re-disables when time data is written.

    Signed-off-by: Sergey Yanovich
    Acked-by: Marc Zyngier
    Cc: Alessandro Zummo
    Cc: Sachin Kamat
    Cc: Jingoo Han
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sergey Yanovich
     
  • After the switch to devm_ functions and the removal of
    rtc_device_unregister(), the 'remove' function does not do anything.
    Delete it.

    Signed-off-by: Sachin Kamat
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sachin Kamat
     
  • The driver core clears the driver data to NULL after device_release or
    on probe failure, since commit 0998d063100 ("device-core: Ensure drvdata
    = NULL when no driver is bound"). Thus, it is not needed to manually
    clear the device driver data to NULL.

    Signed-off-by: Jingoo Han
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jingoo Han
     

30 Apr, 2013

3 commits


04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, __devinitdata,
    __devinitconst, and __devexit from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Cc: Alessandro Zummo
    Cc: Srinidhi Kasagar
    Cc: Linus Walleij
    Cc: Mike Frysinger
    Cc: Wan ZongShun
    Cc: Guan Xuetao
    Cc: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

29 Oct, 2010

1 commit


25 May, 2010

1 commit

  • The current ds1302 driver (or at least the one that lives in /drivers/rtc)
    seems to be designed for memory mapped devices only. This make it quite
    hard to add support for GPIO-based implementations (as this is the case
    for the upcoming Arcom Vulcan).

    This patch moves the direct register access to inline functions with
    explicit names. Still not as good as a proper platform driver, but at
    least neater.

    Signed-off-by: Marc Zyngier
    Cc: Paul Gortmaker
    Cc: Alessandro Zummo
    Cc: Paul Mundt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marc Zyngier
     

16 Dec, 2009

1 commit

  • Herton Ronaldo Krzesinski recently raised up, and fixed, an issue with the
    rtc_cmos driver, which was referring to an inconsistent driver data.

    This patch ensures that driver data registration happens before
    rtc_device_register().

    Signed-off-by: Alessandro Zummo
    Acked-by: Thomas Hommel
    Acked-by: Hans-Christian Egtvedt
    Acked-by: Paul Mundt
    Cc: David S. Miller
    Cc: Thomas Bogendoerfer
    Cc: Andrew Sharp
    Cc: Atsushi Nemoto
    Cc: Alexander Bigga
    Cc: Thomas Bogendoerfer
    Cc: Mark Zhan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     

25 Nov, 2009

1 commit


20 Aug, 2009

2 commits


21 Oct, 2008

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (112 commits)
    sh: Move SH-4 CPU headers down one more level.
    sh: Only build in gpio.o when CONFIG_GENERIC_GPIO is selected.
    sh: Migrate common board headers to mach-common/.
    sh: Move the CPU definition headers from asm/ to cpu/.
    serial: sh-sci: Add support SCIF of SH7723
    video: add sh_mobile_lcdc platform flags
    video: remove unused sh_mobile_lcdc platform data
    sh: remove consistent alloc cruft
    sh: add dynamic crash base address support
    sh: reduce Migo-R smc91x overruns
    sh: Fix up some merge damage.
    Fix debugfs_create_file's error checking method for arch/sh/mm/
    Fix debugfs_create_dir's error checking method for arch/sh/kernel/
    sh: ap325rxa: Add support RTC RX-8564LC in AP325RXA board
    sh: Use sh7720 GPIO on magicpanelr2 board
    sh: Add sh7720 pinmux code
    sh: Use sh7203 GPIO on rsk7203 board
    sh: Add sh7203 pinmux code
    sh: Use sh7723 GPIO on AP325RXA board
    sh: Add sh7723 pinmux code
    ...

    Linus Torvalds
     

20 Oct, 2008

2 commits


28 Apr, 2008

1 commit


07 Feb, 2008

1 commit

  • This adds a basic ds1302 RTC driver, which is basically a cleanup and move
    of the in-tree SH SecureEdge5410 code (which is currently located in
    arch/sh/board/snapgear/rtc.c) to drivers/rtc.

    This aims to be a building block that the M32R and CRIS code can be worked
    on top of, so we can get rid of drivers/char/ds1302.c and
    arch/cris/arch-v10/drivers/ds1302.c respectively, though more work is
    needed for this.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Paul Mundt
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Mundt