Switch to devm_rtc_allocate_device/devm_rtc_register_device, this allows
for further improvement of the driver.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
drivers/rtc/rtc-s5m.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Clear the RTC_FEATURE_ALARM bit to signal to the core when alarms are not
available to ensure the alarm callbacks are never called and userspace is
aware alarms are not supported.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
drivers/rtc/rtc-s5m.c | 27 +++++++++++----------------
1 file changed, 11 insertions(+), 16 deletions(-)
From: Krzysztof Kozlowski <hidden> Date: 2021-08-04 11:48:18
On 04/08/2021 12:41, Alexandre Belloni wrote:
Clear the RTC_FEATURE_ALARM bit to signal to the core when alarms are not
available to ensure the alarm callbacks are never called and userspace is
aware alarms are not supported.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
drivers/rtc/rtc-s5m.c | 27 +++++++++++----------------
1 file changed, 11 insertions(+), 16 deletions(-)
Reviewed-by: Krzysztof Kozlowski <redacted>
Best regards,
Krzysztof
Call device_init_wakeup() only when alarms are available and the RTC is
actually able to wake up the system.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
drivers/rtc/rtc-s5m.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
From: Krzysztof Kozlowski <hidden> Date: 2021-08-04 11:48:36
On 04/08/2021 12:41, Alexandre Belloni wrote:
Call device_init_wakeup() only when alarms are available and the RTC is
actually able to wake up the system.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
drivers/rtc/rtc-s5m.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Reviewed-by: Krzysztof Kozlowski <redacted>
Best regards,
Krzysztof
The S5M8763X type seems to handles dates from year 0000 to 9999, there is
no info on leap year handling after 2099. The other models handles dates
from 2000 to 2099.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
drivers/rtc/rtc-s5m.c | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
From: Krzysztof Kozlowski <hidden> Date: 2021-08-04 12:01:29
On 04/08/2021 12:41, Alexandre Belloni wrote:
The S5M8763X type seems to handles dates from year 0000 to 9999, there is
no info on leap year handling after 2099. The other models handles dates
from 2000 to 2099.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
drivers/rtc/rtc-s5m.c | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
Seems correct:
Reviewed-by: Krzysztof Kozlowski <redacted>
Best regards,
Krzysztof
From: Krzysztof Kozlowski <hidden> Date: 2021-08-04 11:44:03
On 04/08/2021 12:41, Alexandre Belloni wrote:
Switch to devm_rtc_allocate_device/devm_rtc_register_device, this allows
for further improvement of the driver.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
drivers/rtc/rtc-s5m.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Reviewed-by: Krzysztof Kozlowski <redacted>
Best regards,
Krzysztof