bus: omap_l3_noc: Add resume hook to restore context
authorKeerthy <j-keerthy@ti.com>
Mon, 10 Nov 2014 18:19:47 +0000 (23:49 +0530)
committerTony Lindgren <tony@atomide.com>
Wed, 12 Nov 2014 15:16:05 +0000 (07:16 -0800)
commit61b43d4e919e8fa5e10c77ee32ba328da07e0264
treea336de40a967ef33390a20431b16caea142f0119
parent126e31faa12c0d40c3b603adb9ac6d72dd424860
bus: omap_l3_noc: Add resume hook to restore context

On certain SoCs such as AM437x SoC, L3_noc error registers are
maintained in power domain such as per domain which looses context as part
of low power state such as RTC+DDR mode. On these platforms when we
mask interrupts which we cannot handle, the source of these interrupts
still remain on resume, however, the flag mux registers now contain
their reset value (unmasked) - this breaks the system with infinite
interrupts since we do not these interrupts to take place ever again.

To handle this: restore the masking of interrupts which we have
already recorded in the system as ones we cannot handle.

Fixes: 2100b595b7 ("bus: omap_l3_noc: ignore masked out unclearable targets")
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/omap_l3_noc.c