From: Mike Frysinger Date: Thu, 30 Jun 2011 04:49:30 +0000 (-0400) Subject: Blackfin: bf526: restrict reboot workaround to 0.0 silicon X-Git-Tag: MMI-PSA29.97-13-9~18881^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0d3dc1291e862c17c003cb4a9a6e20c79f5bd78;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Blackfin: bf526: restrict reboot workaround to 0.0 silicon The bug in the BF526 rom when doing a software reset exists only in older silicon versions, so don't clear SWRST on newer parts. Signed-off-by: Mike Frysinger --- diff --git a/arch/blackfin/kernel/reboot.c b/arch/blackfin/kernel/reboot.c index 488bdc51aaa5..c4c0081b1996 100644 --- a/arch/blackfin/kernel/reboot.c +++ b/arch/blackfin/kernel/reboot.c @@ -54,7 +54,9 @@ static void bfin_reset(void) /* The BF526 ROM will crash during reset */ #if defined(__ADSPBF522__) || defined(__ADSPBF524__) || defined(__ADSPBF526__) - bfin_read_SWRST(); + /* Seems to be fixed with newer parts though ... */ + if (__SILICON_REVISION__ < 1 && bfin_revid() < 1) + bfin_read_SWRST(); #endif /* Wait for the SWRST write to complete. Cannot rely on SSYNC