3914865c89c2184b0b05f277c87182fa698d9e46
[openwrt/openwrt.git] / target / linux / brcm63xx / patches-4.14 / 150-MIPS-BCM63XX-fix-switch-core-reset-on-BCM6368.patch
1 From f1af8bb8e0879a3c2d9679a7274c2774335e9876 Mon Sep 17 00:00:00 2001
2 From: Jonas Gorski <jonas.gorski@gmail.com>
3 Date: Wed, 14 Nov 2018 12:06:41 +0100
4 Subject: [PATCH] MIPS: BCM63XX: fix switch core reset on BCM6368
5
6 The Ethernet Switch core mask was set to 0, causing the switch core to
7 be not reset on BCM6368 on boot. Provide the proper mask so the switch
8 core gets reset to a known good state.
9
10 Fixes: 799faa626c71 ("MIPS: BCM63XX: add core reset helper")
11 Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
12 ---
13 arch/mips/bcm63xx/reset.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/arch/mips/bcm63xx/reset.c
17 +++ b/arch/mips/bcm63xx/reset.c
18 @@ -120,7 +120,7 @@
19 #define BCM6368_RESET_DSL 0
20 #define BCM6368_RESET_SAR SOFTRESET_6368_SAR_MASK
21 #define BCM6368_RESET_EPHY SOFTRESET_6368_EPHY_MASK
22 -#define BCM6368_RESET_ENETSW 0
23 +#define BCM6368_RESET_ENETSW SOFTRESET_6368_ENETSW_MASK
24 #define BCM6368_RESET_PCM SOFTRESET_6368_PCM_MASK
25 #define BCM6368_RESET_MPI SOFTRESET_6368_MPI_MASK
26 #define BCM6368_RESET_PCIE 0