Skip to content

Commit 6d59180

Browse files
mbizonfreeboxJohn Crispin
authored andcommitted
MIPS: BCM63XX: don't write to the chipid register on reboot
While harmless, it is bad style to do so. Signed-off-by: Maxime Bizon <mbizon@freebox.fr> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Patchwork: http://patchwork.linux-mips.org/patch/4092/ Signed-off-by: John Crispin <blogic@openwrt.org>
1 parent 64eaea4 commit 6d59180

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/mips/bcm63xx/setup.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ void bcm63xx_machine_reboot(void)
8686
}
8787

8888
for (i = 0; i < 2; i++) {
89+
if (!perf_regs[i])
90+
break;
91+
8992
reg = bcm_perf_readl(perf_regs[i]);
9093
if (BCMCPU_IS_6348()) {
9194
reg &= ~EXTIRQ_CFG_MASK_ALL_6348;

0 commit comments

Comments
 (0)