diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2013-12-12 17:12:28 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-12-12 18:19:26 -0800 |
commit | d73238d4a6ca2eadbd14565d769706c85650c641 (patch) | |
tree | 656c58a23c71db744b97e7d4b79d1924c8099cbb /drivers/regulator/s5m8767.c | |
parent | 7b003be82676ddf0bca52e0f98e0694da2ac427f (diff) | |
download | op-kernel-dev-d73238d4a6ca2eadbd14565d769706c85650c641.zip op-kernel-dev-d73238d4a6ca2eadbd14565d769706c85650c641.tar.gz |
rtc: s5m: limit endless loop waiting for register update
After setting alarm or time the driver is waiting for UDR register to be
cleared indicating that registers data have been transferred.
Limit the endless loop to only 5 retries.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Mark Brown <broonie@linaro.org>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/regulator/s5m8767.c')
0 files changed, 0 insertions, 0 deletions