firmware: qcom_scm-32: replace open-coded call to __cpuc_flush_dcache_area()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 24 Jul 2015 09:21:02 +0000 (10:21 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 11 Aug 2015 17:45:00 +0000 (18:45 +0100)
commitefaa6e266ba70439da00e7f1c8a218e243ae140a
treebd7d7d35ba8575eccfcc01d2338e2a91c8357ff5
parent21caf3a765b0a88f8fedf63b36e5d15683b73fe5
firmware: qcom_scm-32: replace open-coded call to __cpuc_flush_dcache_area()

Rathe rthan directly accessing architecture internal functions, provide
an "method"-centric wrapper for qcom_scm-32 to do what's necessary to
ensure that the secure monitor can see the data.  This is called
"secure_flush_area" and ensures that the specified memory area is
coherent across the secure boundary.

Acked-by: Andy Gross <agross@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/cacheflush.h
drivers/firmware/qcom_scm-32.c