From: Arnaud Ebalard Date: Wed, 10 Dec 2014 23:54:08 +0000 (-0800) Subject: drivers/rtc/rtc-isl12057.c: add proper handling of oscillator failure bit X-Git-Tag: omap-for-v3.20/drop-legacy-3517~139^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10df1e6787647f381a90689a5285555275f1a3a3;p=pandora-kernel.git drivers/rtc/rtc-isl12057.c: add proper handling of oscillator failure bit As suggested by Uwe, instead of clearing oscillator failure bit unconditionally at driver load, this patch adds proper handling of the flag. The driver now returns -ENODATA when reading time from the device and oscillator failure bit is set. The flag is now cleared only when the a new time value is pushed to the device. Signed-off-by: Arnaud Ebalard Reported-by: Uwe Kleine-König Acked-by: Uwe Kleine-König Cc: Mark Rutland Cc: Alessandro Zummo Cc: Peter Huewe Cc: Linus Walleij Cc: Thierry Reding Cc: Mark Brown Cc: Grant Likely Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed