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 4/9] microblaze: dma-mapping: support debug_dma_mapping_error
Date: Fri, 23 Nov 2012 14:33:42 -0700 [thread overview]
Message-ID: <1353706422.5270.99.camel@lorien2> (raw)
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>
Acked-by: Michal Simek <monstr@monstr•eu>
---
This patch is already in linux-next. Including it in this series for
completeness. linux-next commit f229605441030bcd315c21d97b25889d63ed0130
-- shuah
---
arch/microblaze/include/asm/dma-mapping.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/microblaze/include/asm/dma-mapping.h b/arch/microblaze/include/asm/dma-mapping.h
index 01d2282..46460f1 100644
--- a/arch/microblaze/include/asm/dma-mapping.h
+++ b/arch/microblaze/include/asm/dma-mapping.h
@@ -114,6 +114,8 @@ static inline void __dma_sync(unsigned long paddr,
static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
{
struct dma_map_ops *ops = get_dma_ops(dev);
+
+ debug_dma_mapping_error(dev, dma_addr);
if (ops->mapping_error)
return ops->mapping_error(dev, dma_addr);
--
1.7.9.5
reply other threads:[~2012-11-23 21:43 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=1353706422.5270.99.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