MLK-11382 tty: serial: imx: disable irq after suspend
Disable rx irq after suspend to avoid interrupt coming in early resume. Signed-off-by: Fugang Duan <B38611@freescale.com>
This commit is contained in:
parent
84d4d0be90
commit
81e8e7d91d
@ -1849,9 +1849,7 @@ static int serial_imx_suspend(struct platform_device *dev, pm_message_t state)
|
||||
writel(val, sport->port.membase + UCR3);
|
||||
|
||||
uart_suspend_port(&imx_reg, &sport->port);
|
||||
|
||||
if (sport->port.irq_wake)
|
||||
disable_irq(sport->port.irq);
|
||||
disable_irq(sport->port.irq);
|
||||
|
||||
/* Save necessary regs */
|
||||
clk_prepare_enable(sport->clk_ipg);
|
||||
@ -1896,10 +1894,8 @@ static int serial_imx_resume(struct platform_device *dev)
|
||||
writel(USR1_AWAKE, sport->port.membase + USR1);
|
||||
clk_disable_unprepare(sport->clk_ipg);
|
||||
|
||||
if (sport->port.irq_wake)
|
||||
enable_irq(sport->port.irq);
|
||||
|
||||
uart_resume_port(&imx_reg, &sport->port);
|
||||
enable_irq(sport->port.irq);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user