memory: tegra30-emc: Firm up suspend/resume sequence
authorDmitry Osipenko <digetx@gmail.com>
Fri, 20 Dec 2019 02:08:47 +0000 (05:08 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 10 Jan 2020 14:47:18 +0000 (15:47 +0100)
commit51bb73f93410a30550641f69d14cfb7b43fd2da1
treeed9a36ac3324df76ef4195a2f8d8c1317fbc6ff1
parent5f5636ef1de9174db8333787086a0e105938a2c5
memory: tegra30-emc: Firm up suspend/resume sequence

The current code doesn't prevent race conditions of suspend/resume vs CCF.
Let's take exclusive control over the EMC clock during suspend in a way
that is free from race conditions.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/memory/tegra/tegra30-emc.c