aboutsummaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-st-lpc.c
AgeCommit message (Collapse)AuthorFilesLines
2019-05-24treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 36Thomas Gleixner1-5/+1
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 licence as published by the free software foundation either version 2 of the licence 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 114 file(s). Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Allison Randal <[email protected]> Reviewed-by: Kate Stewart <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
2018-05-23rtc: st-lpc: add rangeAlexandre Belloni1-0/+2
The RTC has a 64 bit counter. Signed-off-by: Alexandre Belloni <[email protected]> Acked-by: Patrice Chotard <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
2018-05-23rtc: st-lpc: fix possible race conditionAlexandre Belloni1-15/+9
The IRQ is requested before the struct rtc is allocated and registered, but this struct is used in the IRQ handler. This may lead to a NULL pointer dereference. Switch to devm_rtc_allocate_device/rtc_register_device to allocate the rtc before requesting the IRQ. Acked-by: Patrice Chotard <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
2018-03-27rtc: st-lpc: remove artificial limitationAlexandre Belloni1-16/+0
The LPC RTC supports dates way beyond 2038, don't limit it artificially as the kernel handles dates after 2038 properly. Signed-off-by: Alexandre Belloni <[email protected]>
2017-07-09rtc: st-lpc: make it robust against y2038/2106 bugBenjamin Gaignard1-11/+8
Make driver use u64 variables and functions to be sure that it will support dates after year 2038. Signed-off-by: Benjamin Gaignard <[email protected]> Acked-by: Patrice Chotard <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
2015-07-23rtc: st: Update IP layout information to include ClocksourceLee Jones1-1/+1
Initial submission adding support for this IP only included Watchdog and the Real-Time Clock. Now the third (and final) device is enabled this trivial patch is required to update the comment in the RTC driver to encompass Clocksource. Acked-by: Alexandre Belloni <[email protected]> Signed-off-by: Lee Jones <[email protected]>
2015-04-30rtc: st: Add new driver for ST's LPC RTCLee Jones1-0/+354
ST's Low Power Controller (LPC) controls two devices; watchdog and RTC. Only one of the devices can be used at any one time. This is enforced by the correlating MFD driver. This portion of the driver-set controls the Real Time Clock. Cc: Alessandro Zummo <[email protected]> Signed-off-by: Lee Jones <[email protected]>