public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/2] staging: ion: of_ion_device_get
@ 2016-03-22 22:33 Moritz Fischer
  2016-03-22 22:33 ` [RFC 1/2] misc: Add of_get_misc get a reference from devicetree Moritz Fischer
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Moritz Fischer @ 2016-03-22 22:33 UTC (permalink / raw)
  To: arnd
  Cc: gregkh, arve, riandrews, labbott, gioh.kim, sumit.semwal,
	dan.carpenter, sriram, linux-kernel, devel, Moritz Fischer

Hi all,

probably I'm doing this all wrong. I'm playing around with a bunch of accelerators
and I need to share buffers between them. I have my heaps implemented as a
platform device and from what I understand I'll need a reference to the
struct ion_device in each of them.
I couldn't find a way to get to that via devicetree, though. I'll admit that hacking
up miscdevice is quite hacky, maybe I should add a foo_get_ion_device() to my
heap implementing platform device?
If someone can explain me how to correctly do that with what we currently have,
even better.

Cheers,

   Moritz

Moritz Fischer (2):
  misc: Add of_get_misc get a reference from devicetree
  staging: android: ion: Add of_ion_device_get function

 drivers/char/misc.c               | 38 ++++++++++++++++++++++++++++++++++++++
 drivers/staging/android/ion/ion.c | 10 ++++++++++
 include/linux/miscdevice.h        |  3 +++
 3 files changed, 51 insertions(+)

-- 
2.7.4

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

end of thread, other threads:[~2016-03-23  4:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-22 22:33 [RFC 0/2] staging: ion: of_ion_device_get Moritz Fischer
2016-03-22 22:33 ` [RFC 1/2] misc: Add of_get_misc get a reference from devicetree Moritz Fischer
2016-03-22 22:54   ` Moritz Fischer
2016-03-22 22:33 ` [RFC 2/2] staging: android: ion: Add of_ion_device_get function Moritz Fischer
2016-03-22 22:50   ` Moritz Fischer
2016-03-23  4:55   ` Dan Carpenter
2016-03-22 22:51 ` [RFC 0/2] staging: ion: of_ion_device_get Laura Abbott
2016-03-22 23:08   ` Moritz Fischer
2016-03-22 23:20     ` Laura Abbott
2016-03-22 23:38       ` Moritz Fischer
2016-03-22 23:40       ` Moritz Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox