diff options
author | Pratik Patel <pratikp@codeaurora.org> | 2015-03-25 17:47:58 -0700 |
---|---|---|
committer | Rohit Vaswani <rvaswani@codeaurora.org> | 2016-03-01 12:22:24 -0800 |
commit | 8caa282df85e4970817f60f5d423f2f0f49617ff (patch) | |
tree | d7c5cae8526f4fe1bd5a3d48e1a89f09172a4bf1 /drivers/soc | |
parent | 790f2f08642f7d98a63902db3602465e675d0137 (diff) |
soc: qcom: memory_dump_v2: write 64-bit address to imem
Use memcpy_toio() to write 64-bit address to imem instead of
writel_relaxed which is causing truncation as its a 32-bit api.
Change-Id: I0c0922e1eeff72bacb788bd70e6381e9c1dcf7fd
Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/qcom/memory_dump_v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soc/qcom/memory_dump_v2.c b/drivers/soc/qcom/memory_dump_v2.c index 01261a28e307..c0b884f34e15 100644 --- a/drivers/soc/qcom/memory_dump_v2.c +++ b/drivers/soc/qcom/memory_dump_v2.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2014, The Linux Foundation. All rights reserved. +/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -139,7 +139,7 @@ static int __init init_memory_dump(void) } memdump.table->version = MSM_DUMP_TABLE_VERSION; memdump.table_phys = virt_to_phys(memdump.table); - writel_relaxed(memdump.table_phys, imem_base); + memcpy_toio(imem_base, &memdump.table_phys, sizeof(memdump.table_phys)); /* Ensure write to imem_base is complete before unmapping */ mb(); pr_info("MSM Memory Dump base table set up\n"); |