Vaibhav Jain 0ec7769a98 rtc: opal: Implement rtc_class_ops.alarm_irq_enable callback
Provide an implementation of the callback
rtc_class_ops.alarm_irq_enable for rtc-opal driver. This callback is
called when the wake alarm is disabled via the command:

'echo 0 > /sys/class/rtc/rtc0/wakealarm'

Without this the Timed-Power-On(TPO) config remains set even when its
disabled by the above command and FSP will still force machine
boot at previously configured alarm time.

The callback is implemented as function opal_tpo_alarm_irq_enable()
which calls opal_set_tpo_time() with alarm.enabled == 0. A branch is
added to opal_set_tpo_time() to handle this case by passing y_m_d ==
h_m_s_ms == 0 to opal as arguments for opal_tpo_write() call.

Signed-off-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
2017-06-24 07:48:30 +02:00
..
2017-06-03 10:55:36 +02:00
2017-04-03 18:01:34 +02:00
2017-03-09 01:32:35 +01:00
2017-03-09 01:29:17 +01:00
2016-05-20 12:33:51 +02:00
2017-06-03 10:55:26 +02:00
2015-11-10 10:01:21 -08:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2015-09-05 13:19:06 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2017-01-11 17:23:04 +01:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2017-04-22 18:01:15 +02:00
2016-05-20 12:33:51 +02:00
2017-06-03 10:52:04 +02:00
2016-11-30 21:21:33 +01:00
2016-05-20 12:33:51 +02:00