[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1458686031-31031-1-git-send-email-moritz.fischer@ettus.com>
Date: Tue, 22 Mar 2016 15:33:49 -0700
From: Moritz Fischer <moritz.fischer@...us.com>
To: arnd@...db.de
Cc: gregkh@...uxfoundation.org, arve@...roid.com,
riandrews@...roid.com, labbott@...hat.com, gioh.kim@....com,
sumit.semwal@...aro.org, dan.carpenter@...cle.com,
sriram@...irs.net.in, linux-kernel@...r.kernel.org,
devel@...verdev.osuosl.org,
Moritz Fischer <moritz.fischer@...us.com>
Subject: [RFC 0/2] staging: ion: of_ion_device_get
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
Powered by blists - more mailing lists