Messages in this thread |  | | From | Ashish Mhetre <> | | Subject | [PATCH V2 0/2] memory: tegra: Restore MC state on system resume | | Date | Thu, 30 Apr 2026 07:09:52 +0000 |
| |
The tegra-mc platform driver does not register any dev_pm_ops, so the SoC-specific ->resume() is never invoked (e.g. tegra186_mc_resume) on system wake. On Tegra186 and later this means MC client Stream-ID override registers are not reprogrammed.
Register a dev_pm_ops on the tegra-mc driver and route the system resume callback into mc->soc->ops->resume() so the existing SID restore path runs again on wake.
The MC interrupt mask registers also lose state across SC7, so re-apply them on resume. Factor the existing intmask programming out of tegra_mc_probe() into tegra_mc_setup_intmask() and reuse it from both probe and resume to avoid duplicating the loop.
No suspend callback is needed as the resume path reprograms all MC state from the static SoC tables, so there is nothing to save.
Changes in V2: - Split the original single patch into two - register the PM ops and reprogram the MC interrupt masks on resume.
Ashish Mhetre (2): memory: tegra: Wire up system sleep PM ops memory: tegra: Restore MC interrupt masks on resume
drivers/memory/tegra/mc.c | 41 ++++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 7 deletions(-)
-- 2.50.1
|  |