From: Lothar Waßmann Date: Tue, 13 Aug 2013 23:00:56 +0000 (-0700) Subject: drivers/rtc/rtc-stmp3xxx.c: provide timeout for potentially endless loop polling... X-Git-Tag: v3.11-rc6~13^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28a0c88312973792f439493d801ceac61baae9b3;p=pandora-kernel.git drivers/rtc/rtc-stmp3xxx.c: provide timeout for potentially endless loop polling a HW bit It's always a bad idea to poll on HW bits without a timeout. The i.MX28 RTC can be easily brought into a state in which the RTC is not running (until after a power-on-reset) and thus the status bits which are polled in the driver won't ever change. This patch prevents the kernel from getting stuck in this case. Signed-off-by: Lothar Waßmann Acked-by: Wolfram Sang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed