diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2021-11-07 23:54:50 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2021-11-10 00:45:57 +0100 |
commit | 27f06af753149f62d681297177bafc95c1551bfe (patch) | |
tree | b02072ae547a58d68cb55daca193ee966891ffa0 /drivers/rtc | |
parent | 24370014011f8df7a098a83a453204b1f05fd1d2 (diff) | |
download | linux-27f06af753149f62d681297177bafc95c1551bfe.tar.bz2 |
rtc: ab-eoz9: support UIE when available
The RTC actually supports UIE when an interrupt is available.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211107225458.111068-5-alexandre.belloni@bootlin.com
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-ab-eoz9.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ab-eoz9.c b/drivers/rtc/rtc-ab-eoz9.c index 50ead6fce880..e188ab517f1e 100644 --- a/drivers/rtc/rtc-ab-eoz9.c +++ b/drivers/rtc/rtc-ab-eoz9.c @@ -534,7 +534,6 @@ static int abeoz9_probe(struct i2c_client *client, data->rtc->ops = &rtc_ops; data->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; data->rtc->range_max = RTC_TIMESTAMP_END_2099; - clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, data->rtc->features); clear_bit(RTC_FEATURE_ALARM, data->rtc->features); if (client->irq > 0) { @@ -546,6 +545,8 @@ static int abeoz9_probe(struct i2c_client *client, dev_err(dev, "failed to request alarm irq\n"); return ret; } + } else { + clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, data->rtc->features); } if (client->irq > 0 || device_property_read_bool(dev, "wakeup-source")) { |