public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] memory: tegra: Restore MC state on system resume
@ 2026-04-30  7:09 Ashish Mhetre
  2026-04-30  7:09 ` [PATCH V2 1/2] memory: tegra: Wire up system sleep PM ops Ashish Mhetre
  2026-04-30  7:09 ` [PATCH V2 2/2] memory: tegra: Restore MC interrupt masks on resume Ashish Mhetre
  0 siblings, 2 replies; 5+ messages in thread
From: Ashish Mhetre @ 2026-04-30  7:09 UTC (permalink / raw)
  To: krzk, thierry.reding, jonathanh
  Cc: ketanp, linux-kernel, linux-tegra, Ashish Mhetre

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-04-30  9:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30  7:09 [PATCH V2 0/2] memory: tegra: Restore MC state on system resume Ashish Mhetre
2026-04-30  7:09 ` [PATCH V2 1/2] memory: tegra: Wire up system sleep PM ops Ashish Mhetre
2026-04-30  8:39   ` Jon Hunter
2026-04-30  9:39     ` Ashish Mhetre
2026-04-30  7:09 ` [PATCH V2 2/2] memory: tegra: Restore MC interrupt masks on resume Ashish Mhetre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox