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)
commit2a646ddd5a19bf31443b4d37c155be1d979f8acc
treeeb599b3c21505b79d459ab9eb189e203abd913f2
parent258dac35c7078959db4ed0002a113cbd78636251
MLK-13280 ARM: imx: missing mmdc read fifo reset on resume

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