rtc: hym8563: set uie_unsupported

A patch from »rtc: hym8563: set uie_unsupported« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Tue, 6 May 2014 18:45:45 +0200

Commit-Message

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@...> Cc: stable@vger.kernel.org

Patch-Comment

drivers/rtc/rtc-hym8563.c | 3 +++ 1 file changed, 3 insertions(+)

Statistics

  • 3 lines added
  • 0 lines removed

Changes

-------------------------- drivers/rtc/rtc-hym8563.c ---------------------------
index bd628a6..e5f13c4 100644
@@ -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
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...