summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>2018-02-16 11:26:42 +0100
committerJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>2018-05-09 15:26:53 +0200
commit2cd819d5d10dfbea07867c71380b2838c7956acf (patch)
tree227aeea5cdda5018c1e8a6b3e46c81ed4a7c6639
parent868a8ab514dbe7e26feaf92e250cc10e39accb38 (diff)
rtc: isl1208: set uie_unsupported
The isl1208 emulation on puma / rk3399-q7 does not support interrupts at all, but has no way to announce that fact to the kernel. This causes problems in user-space: # hwclock -r -D [...] select() to /dev/rtc to wait for clock tick timed out...synchronization failed Set the uie_unsupported flag unconditionally in the driver until we get a way to configure it through a device tree property. Fixes the problems with hwclock. Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>
-rw-r--r--drivers/rtc/rtc-isl1208.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-isl1208.c b/drivers/rtc/rtc-isl1208.c
index b57a304ff62c..310667b799a7 100644
--- a/drivers/rtc/rtc-isl1208.c
+++ b/drivers/rtc/rtc-isl1208.c
@@ -658,6 +658,9 @@ isl1208_probe(struct i2c_client *client, const struct i2c_device_id *id)
if (IS_ERR(rtc))
return PTR_ERR(rtc);
+ /* the isl1208 emulation on puma / rk3399-q7 does not support interrupts at all */
+ rtc->uie_unsupported = 1;
+
i2c_set_clientdata(client, rtc);
rc = isl1208_i2c_get_sr(client);