public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Shuah Khan <shuah.khan@hp•com>
To: Joerg Roedel <joro@8bytes•org>,
	a-jacquiot@ti•com, fenghua.yu@intel•com, catalin.marinas@arm•com,
	lethal@linux-sh•org, benh@kernel•crashing.org,
	ralf@linux-mips•org, tony.luck@intel•com, davem@davemloft•net,
	m.szyprowski@samsung•com, msalter@redhat•com, monstr@monstr•eu,
	Ming Lei <ming.lei@canonical•com>
Cc: linux-mips@linux-mips•org, linux-ia64@vger•kernel.org,
	linux-c6x-dev@linux-c6x•org, linux-sh@vger•kernel.org,
	microblaze-uclinux@itee•uq.edu.au,
	LKML <linux-kernel@vger•kernel.org>,
	shuahkhan@gmail•com, sparclinux@vger•kernel.org,
	linuxppc-dev@lists•ozlabs.org,
	linux-arm-kernel@lists•infradead.org
Subject: [PATCH 9/9] tile: dma_debug: add debug_dma_mapping_error support
Date: Fri, 23 Nov 2012 14:37:54 -0700	[thread overview]
Message-ID: <1353706674.5270.105.camel@lorien2> (raw)

Add dma-debug interface debug_dma_mapping_error() to debug drivers that fail
to check dma mapping errors on addresses returned by dma_map_single() and
dma_map_page() interfaces.

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

diff --git a/arch/tile/include/asm/dma-mapping.h b/arch/tile/include/asm/dma-mapping.h
index 4b6247d..f2ff191 100644
--- a/arch/tile/include/asm/dma-mapping.h
+++ b/arch/tile/include/asm/dma-mapping.h
@@ -72,6 +72,7 @@ static inline bool dma_capable(struct device *dev, dma_addr_t addr, 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 get_dma_ops(dev)->mapping_error(dev, dma_addr);
 }
 
-- 
1.7.9.5

                 reply	other threads:[~2012-11-23 21:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1353706674.5270.105.camel@lorien2 \
    --to=shuah.khan@hp$(echo .)com \
    --cc=a-jacquiot@ti$(echo .)com \
    --cc=benh@kernel$(echo .)crashing.org \
    --cc=catalin.marinas@arm$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=fenghua.yu@intel$(echo .)com \
    --cc=joro@8bytes$(echo .)org \
    --cc=lethal@linux-sh$(echo .)org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-c6x-dev@linux-c6x$(echo .)org \
    --cc=linux-ia64@vger$(echo .)kernel.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-mips@linux-mips$(echo .)org \
    --cc=linux-sh@vger$(echo .)kernel.org \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=m.szyprowski@samsung$(echo .)com \
    --cc=microblaze-uclinux@itee$(echo .)uq.edu.au \
    --cc=ming.lei@canonical$(echo .)com \
    --cc=monstr@monstr$(echo .)eu \
    --cc=msalter@redhat$(echo .)com \
    --cc=ralf@linux-mips$(echo .)org \
    --cc=shuahkhan@gmail$(echo .)com \
    --cc=sparclinux@vger$(echo .)kernel.org \
    --cc=tony.luck@intel$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox