Hello Fabio, On Tue, Jun 16, 2015 at 10:57:33PM -0300, Fabio Estevam wrote: > From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> > > Disable interrupts before requesting them in order to fix a kernel oops > after lauching a kernel via kexec. > > Tested on a imx6sl-evk board. > > Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> > --- > drivers/tty/serial/imx.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c > index 2c90dc3..8d190f1 100644 > --- a/drivers/tty/serial/imx.c > +++ b/drivers/tty/serial/imx.c > @@ -1957,6 +1957,9 @@ static int serial_imx_probe(struct platform_device *pdev) > > sport->port.uartclk = clk_get_rate(sport->clk_per); > > + /* Disable interrupts before requesting them */ > + writel(0, sport->port.membase + UCR1); > + This also sets UARTEN to 0 and I wonder if this is bad for DEBUG_LL/early_printk. Without having looked into this I'd suggest to only clear the interrupt enable bits. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | http://www.pengutronix.de/ | -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html