linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: cacheflush: Remove unused secure_flush_area API
@ 2016-08-20  6:07 Andy Gross
  2016-08-23  9:39 ` Russell King - ARM Linux
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Gross @ 2016-08-20  6:07 UTC (permalink / raw)
  To: Russell King
  Cc: linux-arm-kernel, linux-kernel, linux-arm-msm, Stephen Boyd,
	patches, Andy Gross

This patch removes the unused secure_flush_area function.  The only
consumer of this function has moved to using the streaming DMA APIs.

Signed-off-by: Andy Gross <andy.gross@linaro.org>
---
 arch/arm/include/asm/cacheflush.h | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h
index 9156fc3..bdd283b 100644
--- a/arch/arm/include/asm/cacheflush.h
+++ b/arch/arm/include/asm/cacheflush.h
@@ -501,21 +501,4 @@ static inline void set_kernel_text_ro(void) { }
 void flush_uprobe_xol_access(struct page *page, unsigned long uaddr,
 			     void *kaddr, unsigned long len);
 
-/**
- * secure_flush_area - ensure coherency across the secure boundary
- * @addr: virtual address
- * @size: size of region
- *
- * Ensure that the specified area of memory is coherent across the secure
- * boundary from the non-secure side.  This is used when calling secure
- * firmware where the secure firmware does not ensure coherency.
- */
-static inline void secure_flush_area(const void *addr, size_t size)
-{
-	phys_addr_t phys = __pa(addr);
-
-	__cpuc_flush_dcache_area((void *)addr, size);
-	outer_flush_range(phys, phys + size);
-}
-
 #endif
-- 
1.9.1

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

* Re: [PATCH] ARM: cacheflush: Remove unused secure_flush_area API
  2016-08-20  6:07 [PATCH] ARM: cacheflush: Remove unused secure_flush_area API Andy Gross
@ 2016-08-23  9:39 ` Russell King - ARM Linux
  0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2016-08-23  9:39 UTC (permalink / raw)
  To: Andy Gross
  Cc: linux-arm-msm, Stephen Boyd, linux-kernel, linux-arm-kernel,
	patches

On Sat, Aug 20, 2016 at 01:07:01AM -0500, Andy Gross wrote:
> This patch removes the unused secure_flush_area function.  The only
> consumer of this function has moved to using the streaming DMA APIs.
> 
> Signed-off-by: Andy Gross <andy.gross@linaro.org>

Looks fine, and from what I can see, nothing depends on it in mainline,
so please put it in the patch system.  Thanks.

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.

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

end of thread, other threads:[~2016-08-23  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-20  6:07 [PATCH] ARM: cacheflush: Remove unused secure_flush_area API Andy Gross
2016-08-23  9:39 ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).