]> git.karo-electronics.de Git - karo-tx-linux.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)
committerJohn Crispin <blogic@openwrt.org>
Tue, 14 Jan 2014 13:36:22 +0000 (14:36 +0100)
commit486648f36c39187f31e6da2d39c82bf4e0f86b4e
treea3b49857efcbd2644c554423d47c78768b2659e3
parent6bd3aac16afc1dbeea7dad60fce27ddc8fe9c05c
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>
Acked-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6101/
arch/mips/cavium-octeon/octeon-platform.c