diff options
author | Jakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com> | 2018-02-16 11:26:42 +0100 |
---|---|---|
committer | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2019-04-30 20:01:54 +0200 |
commit | 6b16d697b2c0f5993e778aa3de9cdb69931b2d90 (patch) | |
tree | fba56eb6865050ab5beeafbe06c42f6783187895 | |
parent | 2e5ac06aaf48b47e0b152d221e8ab46dbfa6ca30 (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.c | 3 |
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); |