From: Marcelo Roberto Jimenez Date: Mon, 18 Oct 2010 21:35:54 +0000 (+0100) Subject: ARM: 6454/1: sa1100: Fix for a nasty initialization bug in the RTSR. X-Git-Tag: v2.6.38-rc1~471^2~5^7~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7decaa557a20f48aabef35f817ec16ef563567b0;p=pandora-kernel.git ARM: 6454/1: sa1100: Fix for a nasty initialization bug in the RTSR. This patch fixes a nasty initialization condition on the RTSR register. Sometimes, bit 1 will wake up set, sometimes not. This can be seen by checking the value of the RTSR by typing '$ cat /proc/driver/rtc', which has been provided by the previous patch. If this bit is set, the command '$ cat /dev/rtc0' will lock the system in an endless interrupt routine calling loop. This patch fixes the issue both at sa1100_rtc_probe(), where it avoids a spurious interrupt from happening, and at sa1100_rtc_interrupt(), which is the robust solution, though it does not avoid the first spurious interrupt. Signed-off-by: Marcelo Roberto Jimenez Signed-off-by: Russell King --- Reading git-diff-tree failed