]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: BMIPS: Fix PRID_IMP_BMIPS5000 masking for BMIPS5200
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 30 Jan 2016 05:17:26 +0000 (21:17 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 9 May 2016 10:00:01 +0000 (12:00 +0200)
commitbdba05f538f11dede153e49560aeed7cbc9b97d5
tree18afd8f138ce038f3cac4e617c4a3591b8edc02c
parent4703e77d8cfd5380b38de182a0d0977a9da8d77b
MIPS: BMIPS: Fix PRID_IMP_BMIPS5000 masking for BMIPS5200

BMIPS5000 have a PrID value of 0x5A00 and BMIPS5200 have a PrID value of
0x5B00, which, masked with 0x5A00, returns 0x5A00. Update all conditionals on
the PrID to cover both variants since we are going to need this to enable
BMIPS5200 SMP. The existing check, masking with 0xFF00 would not cover
BMIPS5200 at all.

Fixes: cadb4b3241e69 ("MIPS: BMIPS: Add PRId for BMIPS5200 (Whirlwind)")
Fixes: 2994b3eadf8b9 ("MIPS: BMIPS: change compile time checks to runtime checks")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: john@phrozen.org
Cc: cernekee@gmail.com
Cc: jogo@openwrt.org
Cc: jaedon.shin@gmail.com
Cc: jfraser@broadcom.com
Cc: pgynther@google.com
Cc: dragan.stancevic@gmail.com
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12279/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/bmips_vec.S