Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/mpc512x: initialize board restart earlier

move the MPC512x restart initialization from the shared init routine
to the shared init_early routine

recent problems in the proc(5) filesystem initialization led to the
situation where the platform's restart routine was invoked yet the
registers required for software reset were not yet available, which
made the board hang instead of reboot

Signed-off-by: Gerhard Sittig <gsi@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>

authored by

Gerhard Sittig and committed by
Anatolij Gustschin
a4f4124c 2abbbb63

+1 -1
+1 -1
arch/powerpc/platforms/512x/mpc512x_shared.c
··· 438 438 439 439 void __init mpc512x_init_early(void) 440 440 { 441 + mpc512x_restart_init(); 441 442 if (IS_ENABLED(CONFIG_FB_FSL_DIU)) 442 443 mpc512x_init_diu(); 443 444 } ··· 447 446 { 448 447 mpc5121_clk_init(); 449 448 mpc512x_declare_of_platform_devices(); 450 - mpc512x_restart_init(); 451 449 mpc512x_psc_fifo_init(); 452 450 } 453 451