[lkml]   [2016]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] DMA initialization for manually created devices


David Woodhouse <> writes:
> On Tue, 2016-04-19 at 14:38 +0300, Felipe Balbi wrote:
>> The reason for that I'm using a manually created platform_device and
>> that misses dev->archdata which the underlying/parent PCI device has.
> Typically we'd expect you to use the parent device for DMA, as in your
> second option.
> That said, we're exploring the option of moving the dma_ops to be a
> first-class member of 'struct device' instead of hiding it in archdata,
> and cleaning up the way that it gets initialised for newly-created
> devices. And at that point we might end up letting it get inherited
> from the parent so your original code *would* work... but I wouldn't
> hold your breath for that.
> Definitely *don't* mess around in archdata.

alright, I'll patch it up to use parent device everywhere, at least for


[unhandled content-type:application/pgp-signature]
 \ /
  Last update: 2016-04-19 15:21    [W:0.048 / U:0.188 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site