linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* i2c_transfer & dma
@ 2014-09-23 19:38 Peter Hüwe
       [not found] ` <201409232138.33067.PeterHuewe-Mmb7MZpHnFY@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Hüwe @ 2014-09-23 19:38 UTC (permalink / raw)
  To: linux-i2c-u79uwXL29TY76Z2rM5mHXA

Hi,

I was wondering if the buffer in an i2c_msg, passed to i2c_transfer must be 
dma-able i.e. dynamically allocated, like for USB?

The reason why I'm asking is because the e.g. the i2c_robotfuzz_osif usb-to-
i2c adapter passes the incoming data directly to a usb_control_msg which of 
course expects the buffer to be dma-able.

So the question is - does the user of i2c_transfer have to provide a dma-able 
buffer, or is the bus driver (like the robotfuzz one) expected to convert 
incoming buffer into a dma-able buffer?


Thanks,
Peter

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

* Re: i2c_transfer & dma
       [not found] ` <201409232138.33067.PeterHuewe-Mmb7MZpHnFY@public.gmane.org>
@ 2014-09-25 14:05   ` Wolfram Sang
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2014-09-25 14:05 UTC (permalink / raw)
  To: Peter Hüwe; +Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 621 bytes --]


> So the question is - does the user of i2c_transfer have to provide a dma-able 
> buffer, or is the bus driver (like the robotfuzz one) expected to convert 
> incoming buffer into a dma-able buffer?

As of now, this is an open question, sadly. I have a tendency to leave
it to the drivers (maybe with helper functions from the core), because
I2C and DMA is so uncommon. I need to work on I2C & DMA next month
anyhow, so I hope to dive into that topic, too. No promises, though. If
you want to look into it already, please go ahead. The issue was raised
here, too: http://patchwork.ozlabs.org/patch/220137/


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2014-09-25 14:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-23 19:38 i2c_transfer & dma Peter Hüwe
     [not found] ` <201409232138.33067.PeterHuewe-Mmb7MZpHnFY@public.gmane.org>
2014-09-25 14:05   ` Wolfram Sang

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