linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFT] sparc: dma-mapping: support debug_dma_mapping_error
@ 2012-10-26  0:36 Shuah Khan
  2012-10-26  0:38 ` [PATCH RFT RESEND] " Shuah Khan
  2012-11-17 12:22 ` [PATCH RFT] " Joerg Roedel
  0 siblings, 2 replies; 12+ messages in thread
From: Shuah Khan @ 2012-10-26  0:36 UTC (permalink / raw)
  To: davem, kyungmin.park, m.szyprowski, sam, arnd; +Cc: sparclinux, LKML, shuahkhan

>From 9e8feb61482288c5a5dd609e0dd17c1a262a48a3 Mon Sep 17 00:00:00 2001
From: Shuah Khan <shuahkhan@gmail.com>
Date: Thu, 25 Oct 2012 18:31:42 -0600
Subject: [PATCH RFT] sparc: dma-mapping: support debug_dma_mapping_error

Add support for debug_dma_mapping_error() call to avoid warning from
debug_dma_unmap() interface when it checks for mapping error checked
status. Without this patch, device driver failed to check map error
warning is generated.

Signed-off-by: Shuah Khan <shuah.khan@hp.com>
---
 arch/sparc/include/asm/dma-mapping.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/sparc/include/asm/dma-mapping.h b/arch/sparc/include/asm/dma-mapping.h
index 8493fd3..05fe53f 100644
--- a/arch/sparc/include/asm/dma-mapping.h
+++ b/arch/sparc/include/asm/dma-mapping.h
@@ -59,6 +59,7 @@ static inline void dma_free_attrs(struct device *dev, size_t size,
 
 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
 {
+	debug_dma_mapping_error(dev, dma_addr);
 	return (dma_addr == DMA_ERROR_CODE);
 }
 
-- 
1.7.9.5




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

end of thread, other threads:[~2012-11-17 12:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-26  0:36 [PATCH RFT] sparc: dma-mapping: support debug_dma_mapping_error Shuah Khan
2012-10-26  0:38 ` [PATCH RFT RESEND] " Shuah Khan
2012-10-26 16:13   ` [PATCH RFT RESEND linux-next] " Shuah Khan
2012-10-26 19:01     ` David Miller
2012-10-26 19:10       ` David Miller
2012-10-26 21:40         ` Shuah Khan
2012-11-10  0:38     ` David Miller
2012-11-10  0:52       ` Shuah Khan
2012-11-10  0:54         ` David Miller
2012-11-10  1:21           ` Shuah Khan
2012-11-15 17:39           ` Shuah Khan
2012-11-17 12:22 ` [PATCH RFT] " Joerg Roedel

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).