Skip to content

Commit 3637bbd

Browse files
groeckalexandrebelloni
authored andcommitted
rtc: tps6586x: Report maximum alarm limit to rtc core
tps6586x only supports alarms up to 16,383 seconds in the future. Report the limit to the RTC core. Cc: Brian Norris <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 2546e70 commit 3637bbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/rtc/rtc-tps6586x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ static int tps6586x_rtc_probe(struct platform_device *pdev)
252252

253253
rtc->rtc->ops = &tps6586x_rtc_ops;
254254
rtc->rtc->range_max = (1ULL << 30) - 1; /* 30-bit seconds */
255+
rtc->rtc->alarm_offset_max = ALM1_VALID_RANGE_IN_SEC;
255256
rtc->rtc->start_secs = mktime64(2009, 1, 1, 0, 0, 0);
256257
rtc->rtc->set_start_time = true;
257258

0 commit comments

Comments
 (0)