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
     

19 Jun, 2019

1 commit

  • Based on 2 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 version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

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

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

    Thomas Gleixner
     

09 Jun, 2019

1 commit


12 Apr, 2019

1 commit


11 Dec, 2018

1 commit


02 Mar, 2018

1 commit


02 Sep, 2016

1 commit

  • Check for rtc_class_ops structures that are only passed to
    devm_rtc_device_register, rtc_device_register,
    platform_device_register_data, all of which declare the corresponding
    parameter as const. Declare rtc_class_ops structures that have these
    properties as const.

    The semantic patch that makes this change is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @r disable optional_qualifier@
    identifier i;
    position p;
    @@
    static struct rtc_class_ops i@p = { ... };

    @ok@
    identifier r.i;
    expression e1,e2,e3,e4;
    position p;
    @@
    (
    devm_rtc_device_register(e1,e2,&i@p,e3)
    |
    rtc_device_register(e1,e2,&i@p,e3)
    |
    platform_device_register_data(e1,e2,e3,&i@p,e4)
    )

    @bad@
    position p != {r.p,ok.p};
    identifier r.i;
    @@
    i@p

    @depends on !bad disable optional_qualifier@
    identifier r.i;
    @@
    static
    +const
    struct rtc_class_ops i = { ... };
    //

    Signed-off-by: Julia Lawall
    Acked-by: Baruch Siach
    Acked-by: Hans Ulli Kroll
    Acked-by: Linus Walleij
    Acked-by: Thierry Reding
    Signed-off-by: Alexandre Belloni

    Julia Lawall
     

09 Jul, 2016

1 commit


18 Mar, 2016

1 commit


15 Mar, 2016

4 commits

  • The alarm for rx8025 only has a minute accuracy, so unsupport UIE mode.

    pcf8563 and hym8563 also have a minute accuracy and unsupport it.

    Signed-off-by: Akinobu Mita
    Cc: Wolfgang Grandegger
    Cc: Alessandro Zummo
    Cc: Alexandre Belloni
    Signed-off-by: Alexandre Belloni

    Akinobu Mita
     
  • The alarm for rx8025 only has a minute accuracy, so round up to nearest
    minute when setting alarm. Without doing this, rtctest blocks one day
    after setting alarm to 5 seconds later.

    pcf8563 and hym8563 also have similar handling.

    Signed-off-by: Akinobu Mita
    Cc: Wolfgang Grandegger
    Cc: Alessandro Zummo
    Cc: Alexandre Belloni
    Signed-off-by: Alexandre Belloni

    Akinobu Mita
     
  • The ctrl1 register is accessed by alarm operations. But it is updated
    in threaded interrupt handler without acquiring rtc->ops_lock.

    Signed-off-by: Akinobu Mita
    Cc: Wolfgang Grandegger
    Cc: Alessandro Zummo
    Cc: Alexandre Belloni
    Signed-off-by: Alexandre Belloni

    Akinobu Mita
     
  • When IRQ line for this chips is connected, devm_request_threaded_irq()
    refuses to register irq handler with the following message.

    genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq

    Signed-off-by: Akinobu Mita
    Cc: Wolfgang Grandegger
    Cc: Alessandro Zummo
    Cc: Alexandre Belloni
    Signed-off-by: Alexandre Belloni

    Akinobu Mita
     

15 Feb, 2016

1 commit

  • In drivers/rtc/rtc-rx8025.c is a broken link that is supposed to
    lead to a form allowing users to subscribe to the lm-sensors mailing list.

    The link leads
    to a page with a 404 error. I believe the link should be replaced
    with .

    Signed-off-by: Leslie Lau
    Signed-off-by: Jiri Kosina

    Leslie Lau
     

05 Feb, 2016

1 commit


08 Nov, 2015

1 commit


05 Sep, 2015

17 commits


04 Apr, 2014

1 commit


04 Jul, 2013

1 commit


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
     

24 Mar, 2012

1 commit

  • Factor out some boilerplate code for i2c driver registration into
    module_i2c_driver.

    Signed-off-by: Axel Lin
    Cc: Piotr Ziecik
    Cc: Alessandro Zummo
    Cc: Scott Wood
    Cc: Srikanth Srinivasan
    Cc: Mike Rapoport
    Cc: Sergey Lapin
    Cc: Roman Fietze
    Cc: Herbert Valerio Riedel
    Cc: Alexander Bigga
    Cc: Dale Farnsworth
    Cc: Gregory Hermant
    Cc: Wolfgang Grandegger
    Cc: Martyn Welch
    Cc: Byron Bradley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     

10 Mar, 2011

1 commit

  • With PIE mode interrupts now emulated in generic code via an hrtimer,
    no one calls rtc_class_ops->irq_set_state(), so this patch removes it
    along with driver implementations.

    CC: Thomas Gleixner
    CC: Alessandro Zummo
    CC: Marcelo Roberto Jimenez
    CC: rtc-linux@googlegroups.com
    Signed-off-by: John Stultz

    John Stultz
     

24 Dec, 2010

1 commit

  • flush_scheduled_work() is deprecated and scheduled to be removed. On
    removal, directly cancel the work, and flush the uie_task in
    rtc-dev.c::clear_uie().

    Signed-off-by: Tejun Heo
    Cc: Alessandro Zummo
    Cc: rtc-linux@googlegroups.com

    Tejun Heo
     

19 Jul, 2010

1 commit