diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2017-04-19 11:49:27 -0700 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2017-04-19 11:49:27 -0700 |
commit | 0741c96bfa525cb1ebd5eda2706df1b2cf5fdbfc (patch) | |
tree | fef92c89a0688bb50a7423e43cc0652335e1d539 /plat/nvidia/tegra/common/drivers/smmu/smmu.c | |
parent | f3c8ec672ed8d3b4c56a20c4e74bf7a7ea0e545d (diff) | |
download | trusted-firmware-a-0741c96bfa525cb1ebd5eda2706df1b2cf5fdbfc.tar.gz |
Tegra: smmu: fix the size used to save context
This patch fixes the size used to save the context, when the
device enters System Suspend.
Reported by: David Cunado
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'plat/nvidia/tegra/common/drivers/smmu/smmu.c')
-rw-r--r-- | plat/nvidia/tegra/common/drivers/smmu/smmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/nvidia/tegra/common/drivers/smmu/smmu.c b/plat/nvidia/tegra/common/drivers/smmu/smmu.c index a57db8b1d1..e8b0d0b401 100644 --- a/plat/nvidia/tegra/common/drivers/smmu/smmu.c +++ b/plat/nvidia/tegra/common/drivers/smmu/smmu.c @@ -116,7 +116,7 @@ void tegra_smmu_save_context(uint64_t smmu_ctx_addr) /* Save SMMU config settings */ memcpy16((void *)(uintptr_t)smmu_ctx_addr, (void *)smmu_ctx_regs, - sizeof(smmu_ctx_regs)); + sizeof(smmu_regs_t)); /* save the SMMU table address */ mmio_write_32(TEGRA_SCRATCH_BASE + SECURE_SCRATCH_RSV11_LO, |