Vaibhav Jain
f4a2eecb3f
rtc: opal: Enable alarms only when opal supports tpo
...
rtc-opal driver provides support for rtc alarms via
timed-power-on(tpo). However some Power platforms like BML use a fake
rtc clock and don't support tpo. Such platforms are indicated by the
missing 'has-tpo' property in the device tree.
Current implementation however enables callback for
rtc_class_ops.read/set alarm irrespective of the tpo support from the
platform. This results in a failed opal call when kernel tries to read
an existing alarms via opal_get_tpo_time during rtc device registration.
This patch fixes this issue by setting opal_rtc_ops.read/set_alarm
callback pointers only when tpo is supported.
Acked-by: Michael Neuling <mikey@neuling.org >
Acked-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com >
Signed-off-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com >
Acked-by: Stewart Smith <stewart@linux.vnet.ibm.com >
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com >
2015-09-05 13:19:06 +02:00
..
2015-04-17 09:04:01 -04:00
2015-04-17 09:04:02 -04:00
2015-06-25 01:13:43 +02:00
2015-09-05 13:19:06 +02:00
2015-09-05 13:19:06 +02:00
2015-09-05 13:19:05 +02:00
2014-10-20 16:21:31 +02:00
2015-04-03 08:18:25 +02:00
2015-06-19 20:03:20 +02:00
2015-09-05 13:19:06 +02:00
2015-05-05 17:10:10 -07:00
2015-07-18 00:42:31 +02:00
2014-04-03 16:21:22 -07:00
2015-06-25 01:12:50 +02:00
2015-04-17 09:04:12 -04:00
2013-04-05 09:36:53 -07:00
2015-03-04 22:10:59 +01:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2015-09-05 13:19:06 +02:00
2014-10-20 16:21:31 +02:00
2015-04-17 09:04:02 -04:00
2014-10-20 16:21:31 +02:00
2015-04-17 09:04:00 -04:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2015-01-23 17:21:56 -08:00
2015-04-17 09:04:01 -04:00
2014-10-20 16:21:31 +02:00
2015-06-25 01:13:40 +02:00
2015-06-25 01:13:40 +02:00
2014-10-20 16:21:31 +02:00
2015-04-15 16:35:24 -07:00
2015-09-05 13:19:06 +02:00
2014-08-08 15:57:19 -07:00
2014-04-03 16:21:23 -07:00
2015-09-05 13:19:06 +02:00
2014-04-03 16:21:17 -07:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2015-06-25 01:13:36 +02:00
2015-09-05 13:19:05 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2015-09-05 13:19:06 +02:00
2013-07-03 16:07:56 -07:00
2015-04-17 09:04:02 -04:00
2015-06-25 01:13:44 +02:00
2015-04-17 09:03:59 -04:00
2015-06-25 01:13:38 +02:00
2015-09-05 13:19:06 +02:00
2015-06-25 01:13:45 +02:00
2014-10-20 16:21:31 +02:00
2015-06-19 20:03:20 +02:00
2015-09-05 13:19:06 +02:00
2015-06-19 20:03:21 +02:00
2015-06-25 01:13:42 +02:00
2015-09-05 13:19:06 +02:00
2015-09-05 13:19:06 +02:00
2014-10-20 16:21:31 +02:00
2014-11-21 12:00:00 -08:00
2014-10-20 16:21:31 +02:00
2015-09-05 13:19:06 +02:00
2014-10-20 16:21:31 +02:00
2015-06-21 21:53:59 +02:00
2015-04-17 09:04:02 -04:00
2013-07-03 16:07:56 -07:00
2013-07-03 16:07:57 -07:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2015-06-25 01:13:36 +02:00
2013-07-03 16:07:57 -07:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2015-04-17 09:04:02 -04:00
2015-06-25 01:13:36 +02:00
2015-06-25 01:13:37 +02:00
2015-06-25 01:13:37 +02:00
2015-06-25 01:13:35 +02:00
2014-06-06 16:08:08 -07:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2015-04-15 16:35:24 -07:00
2015-04-17 09:04:02 -04:00
2015-07-18 00:42:15 +02:00
2015-06-25 01:13:45 +02:00
2015-08-05 20:03:56 +08:00
2014-10-20 16:21:31 +02:00
2015-04-17 09:04:02 -04:00
2015-09-05 13:19:06 +02:00
2015-06-25 01:13:40 +02:00
2014-10-20 16:21:31 +02:00
2015-09-05 13:19:06 +02:00
2015-09-05 13:19:06 +02:00
2015-09-05 13:19:06 +02:00
2015-09-05 13:19:06 +02:00
2015-09-05 13:19:06 +02:00
2013-04-29 18:28:38 -07:00
2015-09-05 13:19:06 +02:00
2013-11-13 12:09:31 +09:00
2013-11-13 12:09:31 +09:00
2014-11-03 19:53:56 -08:00
2013-04-09 14:13:32 -04:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-06-06 16:08:09 -07:00
2013-04-29 18:28:34 -07:00
2014-10-20 16:21:31 +02:00
2015-02-13 21:21:43 -08:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2013-11-13 12:09:29 +09:00
2014-10-14 02:18:19 +02:00
2014-04-03 16:21:24 -07:00
2013-07-03 16:07:58 -07:00
2015-09-05 13:19:06 +02:00
2015-09-05 13:19:06 +02:00
2015-06-19 20:03:20 +02:00
2013-04-19 13:51:25 +02:00
2015-04-17 09:04:11 -04:00
2013-04-29 18:28:38 -07:00
2014-06-06 16:08:09 -07:00
2014-10-20 16:21:31 +02:00
2014-12-14 16:10:09 -08:00
2015-07-15 10:15:10 +08:00
2015-06-25 01:13:40 +02:00
2015-07-23 17:07:35 +01:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2015-04-17 09:03:59 -04:00
2014-10-20 16:21:31 +02:00
2014-09-19 12:39:19 +02:00
2015-06-25 01:13:42 +02:00
2013-07-29 13:10:58 -07:00
2015-04-15 16:35:24 -07:00
2015-04-03 08:18:24 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2015-04-17 09:04:02 -04:00
2014-10-20 16:21:31 +02:00
2015-06-25 01:13:38 +02:00
2014-10-20 16:21:31 +02:00
2014-10-20 16:21:31 +02:00
2013-07-03 16:07:59 -07:00
2013-04-29 18:28:32 -07:00
2015-04-17 09:03:59 -04:00
2014-10-20 16:21:31 +02:00
2015-06-25 01:13:42 +02:00