]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: cavium-octeon: fix early boot hang on EBH5600 board
authorAaro Koskinen <aaro.koskinen@nsn.com>
Fri, 1 Nov 2013 15:06:04 +0000 (17:06 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 23 Jan 2014 12:02:34 +0000 (13:02 +0100)
commit738c6ba1b9ede8c323454c86db3738ac9455b127
tree3f4b6d6755e8ba4330cd69451554ef997a9fe67b
parent5d734cead75bed0a0d867dcb766e8ff19265bff0
MIPS: cavium-octeon: fix early boot hang on EBH5600 board

The boot hangs early on EBH5600 board when octeon_fdt_pip_iface() is
trying enumerate a non-existant interface. The actual hang happens in
cvmx_helper_interface_get_mode():

mode.u64 = cvmx_read_csr(CVMX_GMXX_INF_MODE(interface));

when interface == 4. We can avoid this situation by first checking that
the interface exists in the DTB.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nsn.com>
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6101/
arch/mips/cavium-octeon/octeon-platform.c