From: Lars-Peter Clausen <lars@metafoo.de>
To: Vinod Koul <vinod.koul@intel.com>, Russell King <linux@arm.linux.org.uk>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: How is dmaengine_prep_slave_single supposed to be used?
Date: Fri, 27 Jan 2012 15:32:51 +0100 [thread overview]
Message-ID: <4F22B593.3010402@metafoo.de> (raw)
Hi,
I've tried using dmaengine_prep_slave_single in one of my drivers an run
into an issue, the dma_address attribute of the sg element is not
initialized and thus the dma transfer and the DMA transfer fails.
Quoting from Documentation/dmaengine.txt:
The peripheral driver is expected to have mapped the scatterlist for
the DMA operation prior to calling device_prep_slave_sg, and must
keep the scatterlist mapped until the DMA operation has completed.
So this is clearly not the case with dmaengine_prep_slave_single, so I'm
wondering how is ut supposed to be used and can it work properly at all?
Thanks,
- Lars
next reply other threads:[~2012-01-27 14:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-27 14:32 Lars-Peter Clausen [this message]
2012-01-30 4:01 ` How is dmaengine_prep_slave_single supposed to be used? Vinod Koul
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=4F22B593.3010402@metafoo.de \
--to=lars@metafoo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=vinod.koul@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.