18 Nov, 2019

1 commit

  • If tps65910 INT1 pin (IRQ output) is not wired to any IRQ controller,
    then it can't be used as system wakeup/alarm source,
    but it is still possible to read/write time from/to RTC.

    Signed-off-by: Andrey Skvortsov
    Link: https://lore.kernel.org/r/20191116203748.27166-1-andrej.skvortzov@gmail.com
    Signed-off-by: Alexandre Belloni

    Andrey Skvortsov
     

21 Aug, 2019

1 commit

  • The RTC core now has error messages in case of registration failure, there
    is no need to have other messages in the drivers.

    Signed-off-by: Alexandre Belloni
    Link: https://lore.kernel.org/r/20190818220041.17833-2-alexandre.belloni@bootlin.com
    Signed-off-by: Alexandre Belloni

    Alexandre Belloni
     

18 Jul, 2019

1 commit

  • Pull RTC updates from Alexandre Belloni:
    "A quiet cycle this time.

    - ds1307: properly handle oscillator failure flags

    - imx-sc: alarm support

    - pcf2123: alarm support, correct offset handling

    - sun6i: add R40 support

    - simplify getting the adapter of an i2c client"

    * tag 'rtc-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux: (37 commits)
    rtc: wm831x: Add IRQF_ONESHOT flag
    rtc: stm32: remove one condition check in stm32_rtc_set_alarm()
    rtc: pcf2123: Fix build error
    rtc: interface: Change type of 'count' from int to u64
    rtc: pcf8563: Clear event flags and disable interrupts before requesting irq
    rtc: pcf8563: Fix interrupt trigger method
    rtc: pcf2123: fix negative offset rounding
    rtc: pcf2123: add alarm support
    rtc: pcf2123: use %ptR
    rtc: pcf2123: port to regmap
    rtc: pcf2123: remove sysfs register view
    rtc: rx8025: simplify getting the adapter of a client
    rtc: rx8010: simplify getting the adapter of a client
    rtc: rv8803: simplify getting the adapter of a client
    rtc: m41t80: simplify getting the adapter of a client
    rtc: fm3130: simplify getting the adapter of a client
    rtc: tegra: Drop MODULE_ALIAS
    rtc: sun6i: Add R40 compatible
    dt-bindings: rtc: sun6i: Add the R40 RTC compatible
    dt-bindings: rtc: Convert Allwinner A31 RTC to a schema
    ...

    Linus Torvalds
     

02 Jun, 2019

1 commit


31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 3029 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

18 May, 2018

3 commits


10 Jan, 2017

2 commits


15 Mar, 2016

1 commit

  • tps65910 RTC IRQ is nested threaded and wired to the tps65910 inerrupt
    controller. So, this flag is not required for nested irqs anymore,
    since commit 3c646f2c6aa9 ("genirq: Don't suspend nested_thread irqs
    over system suspend") was merged.

    Cc: Alessandro Zummo
    Cc: Alexandre Belloni
    Cc: Lee Jones
    Cc: Tony Lindgren
    Cc: Nishanth Menon
    Cc: Laxman Dewangan
    Signed-off-by: Grygorii Strashko
    Signed-off-by: Alexandre Belloni

    Grygorii Strashko
     

20 Oct, 2014

1 commit


09 Aug, 2014

1 commit

  • The interrupt handler gets the driver data associated with the RTC
    device and doesn't check it for validity. This can cause a NULL pointer
    being dereferenced when and interrupt fires before the driver data was
    properly set up.

    Fix this by setting the driver data earlier (before the interrupt is
    requested).

    Signed-off-by: Thierry Reding
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thierry Reding
     

13 Nov, 2013

1 commit


30 Apr, 2013

3 commits


22 Feb, 2013

4 commits

  • All interrupt get disabled during system suspend and enabled during system
    resume. The enabling/disabling of interrupt happen in sequence of
    interrupt registration with framework.

    Therefore, in resume, the parent interrupt of this device enabled before
    the RTC irq interrupt enabled. If RTC is enabled for alarm wake and if
    system wake by alarm then there is interrupt pending for RTC. In resume,
    the parent interrupt get enabled before the rtc interrupt and hence ISR
    get served. In ISR, it founds that rtc interrupt is disabled and so it
    does not call the rtc isr handler and hence it misses the interrupt.

    Setting flag for early resume so that rtc interrupt get enabled before
    parent interrupt and so rtc interrupt get enabled when parent interrupt
    handler check for interrupt of device and call the rtc handler if it is
    there. This way it will not miss the interrupt.

    Signed-off-by: Laxman Dewangan
    Cc: Mark Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Laxman Dewangan
     
  • Use SET_SYSTEM_SLEEP_PM_OPS for setting suspend/resume callbacks for
    dev_pm_ops.

    Signed-off-by: Laxman Dewangan
    Cc: Mark Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Laxman Dewangan
     
  • The driver stores the interrupt enable register before going to suspend
    and restore in resume. Also it enables alarm before going to suspend.

    The driver only write the Interrupt enable register for enabling ALARM and
    does not enable any other bits. So it is not require to save complete
    register and enable ALARM interrupt before suspend and restore in resume.

    Also ALARM interrupt already enable if alarm is enabled before going to
    suspend and hence it is not require to enable explictly in suspend.

    Removing such above code.

    Signed-off-by: Laxman Dewangan
    Cc: Mark Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Laxman Dewangan
     
  • Making the rtc driver as wakeup capabale and leaving the wake
    enable/disable decision to user space through a sysfs attribute.

    In suspend, enable wake if device wakeup enabled. In resume disable wake
    again.

    This change is inline with the Documentation/power/devices.txt#
    /sys/devices/.../power/wakeup files

    Signed-off-by: Laxman Dewangan
    Cc: Mark Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Laxman Dewangan
     

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
     

18 Dec, 2012

2 commits

  • Enabling RTC HW block depends on the default value of TPS65910 register.
    In some mode, RTC block is disabled by default.(eg. AM3517 Craneboard) In
    this case, RTC_PWDN(RTC power down) bit should be cleared to enable the
    RTC HW block.

    This patch also works in case that RTC block is active by default, because
    there is no side effect even if the bit is updated again.

    Tested on AM3517 Craneboard.

    Signed-off-by: Milo(Woogyom) Kim
    Acked-by: Venu Byravarasu
    Cc: Samuel Ortiz
    Cc: Sivaram Nair
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kim, Milo
     
  • A cosmetic change to rename the irq name to match the device name.

    Signed-off-by: Sivaram Nair
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sivaram Nair
     

01 Dec, 2012

1 commit

  • The tps65910_rtc data is registered as the platform driver data in
    _probe(= ). Therefore the tps65910_rtc should be used on unregistering
    the rtc device. And device pointer should be retrieved from the
    platform_device structure.

    This patch fixes the below oops:

    Unable to handle kernel NULL pointer dereference at virtual address 00000008
    Modules linked in: rtc_tps65910(-)
    CPU: 0 Not tainted (3.7.0-rc7-next-20121128-g6b1f974-dirty #7)
    PC is at tps65910_rtc_alarm_irq_enable+0x20/0x2c [rtc_tps65910]
    (tps65910_rtc_alarm_irq_enable+0x20/0x2c [rtc_tps65910])
    (tps65910_rtc_remove+0x18/0x28 [rtc_tps65910])
    (platform_drv_remove+0x18/0x1c)
    (__device_release_driver+0x70/0xcc)
    (driver_detach+0xb4/0xb8)
    (bus_remove_driver+0x7c/0xc0)
    (sys_delete_module+0x148/0x21c)

    Signed-off-by: Milo(Woogyom) Kim
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kim, Milo
     

06 Oct, 2012

2 commits