Skip to content

Commit

Permalink
drivers/rtc/rtc-hym8563.c: set uie_unsupported
Browse files Browse the repository at this point in the history
The alarm of the hym8563 only supports a minute accuracy, while the uie
wants an alarm one second in the future.  Therefore things like the
select() syscall will fail with a timeout, because the next alarm will
happen in a worst case of 60 seconds.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Heiko Stuebner authored and Linus Torvalds committed May 11, 2014
1 parent afcf0a2 commit 282cba6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/rtc/rtc-hym8563.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,9 @@ static int hym8563_probe(struct i2c_client *client,
if (IS_ERR(hym8563->rtc))
return PTR_ERR(hym8563->rtc);

/* the hym8563 alarm only supports a minute accuracy */
hym8563->rtc->uie_unsupported = 1;

#ifdef CONFIG_COMMON_CLK
hym8563_clkout_register_clk(hym8563);
#endif
Expand Down

0 comments on commit 282cba6

Please sign in to comment.