MLK-13280 ARM: imx: missing mmdc read fifo reset on resume
authorJuan Gutierrez <juan.gutierrez@nxp.com>
Mon, 26 Sep 2016 21:51:06 +0000 (16:51 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:52:32 +0000 (14:52 -0500)
When a device like (USB, CAMM, tty, etc) prevents the megamix
domain to power down during the suspend process (by enabling
a wakeup source) the resume process goes through a path where
the MMDC context should not be restored. However this resume
path does not reset the read fifo MMDCx_MPDGCTRL0[RST_RD_FIFO]
for the platforms with LPDDR2 causing a bad resuming and reset
of the device due to an exception.

This patch adds the reset_read_fifo on the No-restoring-MMDC
path to fix the bad resuming.

Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
Signed-off-by: Alejandro Sierra <b18039@freescale.com>
arch/arm/mach-imx/suspend-imx6.S

index c50fefc..b8ad48f 100644 (file)
        bne     13f
 12:
        resume_iomuxc_gpr
+       reset_read_fifo
 
        b       17f
 13: