MIPS: BCM63XX: fix switch core reset on BCM6368
authorJonas Gorski <jonas.gorski@gmail.com>
Mon, 10 Dec 2018 11:40:38 +0000 (12:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Nov 2019 09:29:35 +0000 (10:29 +0100)
commit 8a38dacf87180738d42b058334c951eba15d2d47 upstream.

The Ethernet Switch core mask was set to 0, causing the switch core to
be not reset on BCM6368 on boot. Provide the proper mask so the switch
core gets reset to a known good state.

Fixes: 799faa626c71 ("MIPS: BCM63XX: add core reset helper")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/bcm63xx/reset.c

index d1fe51edf5e6d005a6c0b202256c3d992d47e814..4d411da2497b3d8622065db8eac8e0a8e0f35627 100644 (file)
 #define BCM6368_RESET_DSL      0
 #define BCM6368_RESET_SAR      SOFTRESET_6368_SAR_MASK
 #define BCM6368_RESET_EPHY     SOFTRESET_6368_EPHY_MASK
-#define BCM6368_RESET_ENETSW   0
+#define BCM6368_RESET_ENETSW   SOFTRESET_6368_ENETSW_MASK
 #define BCM6368_RESET_PCM      SOFTRESET_6368_PCM_MASK
 #define BCM6368_RESET_MPI      SOFTRESET_6368_MPI_MASK
 #define BCM6368_RESET_PCIE     0