From: slapdau@yahoo.com.au (Craig McGeachie)
To: linux-arm-kernel@lists.infradead.org
Subject: Query about include/linux/mailbox.h
Date: Sat, 31 Aug 2013 16:57:40 +1200 [thread overview]
Message-ID: <522177C4.8060205@yahoo.com.au> (raw)
Hello,
At the end of all this, my question is should I put the BCM2835 mailbox
driver in drivers somewhere, and try to make use of
include/linux/mailbox.h, or should go with the view that mailbox drivers
are inherently machine specific, have no common driver framework, and
belongs in arch/arm/mach-bcm2835?
The background to this is that I'm trying to help bring Raspberry Pi
support into the mainline kernel. Lubomir Rintel coded a mailbox driver
[1] that I liked the look off and want to fix up and push upstream.
Stephen Warren suggested that Lubmir's patch had the benefit of using a
new mailbox sub-system [2] and that I should have a look at that.
I've looked at include/linux/mailbox.h, and it only has 3 function
declarations, which are all specific to the PL320. Unless there is
something I've missed, then there is no mailbox sub-system to speak of.
Just a header file that will quickly a dependency nightmare.
I found a patch submission series from Jassi Brar [3] that looks like
the start of an actual mailbox framework, but there is no indication of
it in the current kernel source. I assume it was dropped for some reason.
I don't see much benefit to a mailbox sub-system. The BCM2835 one is
quite a small piece of code, and I really see it as a machine-specific
layer for other device drivers that implement a standard sub-system
interface, like framebuffers.
Which all leads back to my opening question - which way do I jump? What
I'd prefer to do is submit arch/arm/mach-bcm2835.c etc, and maybe even a
patch to move include/linux/mailbox.h somewhere less inviting.
Cheers,
Craig.
[1]
http://lists.infradead.org/pipermail/linux-rpi-kernel/2013-April/000528.html
[2]
http://lists.infradead.org/pipermail/linux-rpi-kernel/2013-May/000546.html
[3] http://lkml.indiana.edu/hypermail/linux/kernel/1305.0/01978.html
next reply other threads:[~2013-08-31 4:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-31 4:57 Craig McGeachie [this message]
2013-08-31 5:33 ` Query about include/linux/mailbox.h Jassi Brar
2013-08-31 11:19 ` Craig McGeachie
2013-08-31 13:39 ` Jassi Brar
2013-09-01 8:53 ` Craig McGeachie
2013-09-06 8:48 ` Craig McGeachie
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=522177C4.8060205@yahoo.com.au \
--to=slapdau@yahoo.com.au \
--cc=linux-arm-kernel@lists.infradead.org \
/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.