23 Mar, 2020

1 commit


16 Mar, 2020

4 commits


27 Nov, 2019

1 commit

  • The change from u8 ctrl_reg to const struct pm8xxx_rtc_regs *regs; did not
    properly update the kerneldoc comment. Fixes:

    drivers/rtc/rtc-pm8xxx.c:64: warning: Function parameter or member 'regs' not described in 'pm8xxx_rtc'

    Fixes: c8d523a4b053 ("drivers/rtc/rtc-pm8xxx.c: rework to support pm8941 rtc")
    Link: https://lore.kernel.org/r/20191122102212.400158-7-alexandre.belloni@bootlin.com
    Signed-off-by: Alexandre Belloni

    Alexandre Belloni
     

13 Aug, 2019

1 commit

  • We don't need dev_err() messages when platform_get_irq() fails now that
    platform_get_irq() prints an error message itself when something goes
    wrong. Let's remove these prints with a simple semantic patch.

    //
    @@
    expression ret;
    struct platform_device *E;
    @@

    ret =
    (
    platform_get_irq(E, ...)
    |
    platform_get_irq_byname(E, ...)
    );

    if ( \( ret < 0 \| ret

    While we're here, remove braces on if statements that only have one
    statement (manually).

    Cc: Alessandro Zummo
    Cc: Alexandre Belloni
    Cc: linux-rtc@vger.kernel.org
    Cc: Greg Kroah-Hartman
    Signed-off-by: Stephen Boyd
    Link: https://lore.kernel.org/r/20190730181557.90391-40-swboyd@chromium.org
    Signed-off-by: Alexandre Belloni

    Stephen Boyd
     

05 Jun, 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 version 2 and
    only version 2 as published by the free software foundation this
    program is distributed in the hope that it will be useful but
    without any warranty without even the implied warranty of
    merchantability or fitness for a particular purpose see the gnu
    general public license for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

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

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

    Thomas Gleixner
     

08 Feb, 2019

1 commit

  • Shifting a u8 by 24 will cause the value to be promoted to an integer. If
    the top bit of the u8 is set then the following conversion to an unsigned
    long will sign extend the value causing the upper 32 bits to be set in
    the result.

    Fix this by casting the u8 value to an unsigned long before the shift.

    Detected by CoverityScan, CID#1309693 ("Unintended sign extension")

    Fixes: 9a9a54ad7aa2 ("drivers/rtc: add support for Qualcomm PMIC8xxx RTC")
    Signed-off-by: Colin Ian King
    Signed-off-by: Alexandre Belloni

    Colin Ian King
     

11 Dec, 2018

1 commit


17 Mar, 2018

1 commit


02 Mar, 2018

1 commit


31 Aug, 2016

1 commit


04 Nov, 2014

1 commit


30 Oct, 2014

1 commit

  • Adds support for RTC device inside PM8941 PMIC. The RTC in this PMIC
    have two register spaces. Thus the rtc-pm8xxx is slightly reworked to
    reflect these differences.

    The register set for different PMIC chips are selected on DT compatible
    string base.

    [akpm@linux-foundation.org: coding-style fixes]
    [akpm@linux-foundation.org: simplify and fix locking in pm8xxx_rtc_set_time()]
    Signed-off-by: Stanimir Varbanov
    Cc: Alessandro Zummo
    Cc: Stephen Boyd
    Cc: Josh Cartwright
    Cc: Stanimir Varbanov
    Cc: Dan Carpenter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stanimir Varbanov
     

20 Oct, 2014

1 commit


04 Apr, 2014

6 commits

  • Setup wakeup capability before rtc_register to ensure the rtc class core
    properly sets up our 'wakealarm' sysfs attribute.

    Signed-off-by: Josh Cartwright
    Reviewed-by: Stephen Boyd
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josh Cartwright
     
  • Add support for describing the PM8921/PM8058 RTC in device tree.

    Additionally:
    - drop support for describing the RTC using platform data,
    as there are no current in tree users who do so.
    - make allow_set_time a device-specific flag, instead of mucking
    with the rtc_ops

    Signed-off-by: Josh Cartwright
    Reviewed-by: Stephen Boyd
    Acked-by: Lee Jones
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josh Cartwright
     
  • Make use of the devm_* variant of request_any_context_irq to allow for
    elimination of remove().

    Signed-off-by: Josh Cartwright
    Reviewed-by: Stephen Boyd
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josh Cartwright
     
  • Now that the parent mfd driver has been made to work again, and has been
    reworked to create a regmap instance intended for its children to use,
    rework the pm8xxx driver to use the regmap API for its register
    accesses.

    Signed-off-by: Josh Cartwright
    Reviewed-by: Stephen Boyd
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josh Cartwright
     
  • This patchset is based on Stephen Boyd's PM8921 modernization/cleanups
    (http://lkml.kernel.org/g/1393441166-32692-1-git-send-email-sboyd@codeaurora.org),
    and allows for this RTC driver to be usable again.

    This patch (of 6):

    Before performing additional cleanups to this driver, do the easy cleanups
    first.

    Signed-off-by: Josh Cartwright
    Reviewed-by: Stephen Boyd
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josh Cartwright
     
  • The site-specific OOM messages are unnecessary, because they duplicate
    the MM subsystem generic OOM message.

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

    Jingoo Han
     

04 Jul, 2013

2 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
     

24 Mar, 2012

1 commit


11 Jan, 2012

1 commit

  • This patch converts the drivers in drivers/rtc/* to use the
    module_platform_driver() macro which makes the code smaller and a bit
    simpler.

    Signed-off-by: Axel Lin
    Acked-by: Mark Brown
    Acked-by: Mike Frysinger
    Acked-by: Guan Xuetao
    Acked-by: Linus Walleij
    Acked-by: Haojian Zhuang
    Cc: Alessandro Zummo
    Cc: Srinidhi Kasagar
    Cc: Lars-Peter Clausen
    Cc: Ben Dooks
    Cc: John Stultz
    Acked-by: Jean-Christophe PLAGNIOL-VILLARD
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     

26 Jul, 2011

1 commit

  • Add support for PMIC8xxx based RTC. PMIC8xxx is Qualcomm's power
    management IC that internally houses an RTC module. This driver
    communicates with the PMIC module over SSBI bus.

    [akpm@linux-foundation.org: cosmetic tweaks]
    Acked-by: Wan ZongShun
    Reviewed-by: Stephen Boyd
    Signed-off-by: Anirudh Ghayal
    Signed-off-by: Ashay Jaiswal
    Cc: Samuel Ortiz
    Cc: Wan ZongShun
    Cc: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anirudh Ghayal