• Shawn Guo's avatar
    ARM: imx: replace imx6q_restart() with mxc_restart() · 87a84b69
    Shawn Guo authored
    The imx6q_restart() works fine with normal reboot but will run into
    problem with emergency reboot like sysrq-b.  In that case, of_iomap()
    gets called from interrupt context and hence triggers the BUG_ON in
    __get_vm_area_node().
    
    Actually, since commit c1e31d12 (ARM: imx: create
    mxc_arch_reset_init_dt() for DT boot), imx6q/dl should try to use
    mxc_restart() by calling mxc_arch_reset_init_dt() beforehand, where
    things like of_iomap() can be done.
    
    The patch updates mxc_restart() a little bit to get it work for imx6q/dl
    and kill imx6q_restart() completely.
    Reported-by: default avatarNathan Lynch <nathan_lynch@mentor.com>
    Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
    87a84b69
system.c 3.67 KB