Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <vapier@gentoo.org>

+3 -1
+3 -1
arch/blackfin/kernel/reboot.c
··· 54 54 55 55 /* The BF526 ROM will crash during reset */ 56 56 #if defined(__ADSPBF522__) || defined(__ADSPBF524__) || defined(__ADSPBF526__) 57 - bfin_read_SWRST(); 57 + /* Seems to be fixed with newer parts though ... */ 58 + if (__SILICON_REVISION__ < 1 && bfin_revid() < 1) 59 + bfin_read_SWRST(); 58 60 #endif 59 61 60 62 /* Wait for the SWRST write to complete. Cannot rely on SSYNC