• Keerthy's avatar
    bus: omap_l3_noc: Add resume hook to restore context · 34bb3cd8
    Keerthy authored
    commit 61b43d4e upstream.
    
    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: 2100b595 ("bus: omap_l3_noc: ignore masked out unclearable targets")
    Acked-by: default avatarNishanth Menon <nm@ti.com>
    Signed-off-by: default avatarKeerthy <j-keerthy@ti.com>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
    34bb3cd8
omap_l3_noc.c 10.3 KB