From: Arnd Bergmann <arnd@arndb.de>
To: Guenter Roeck <linux@roeck-us.net>
Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
"David S. Miller" <davem@davemloft.net>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>
Subject: Re: Adding support for ARINC429 into the Linux kernel
Date: Wed, 19 Jun 2013 23:45:30 +0200 [thread overview]
Message-ID: <201306192345.31106.arnd@arndb.de> (raw)
In-Reply-To: <20130619202954.GA5594@roeck-us.net>
On Wednesday 19 June 2013, Guenter Roeck wrote:
> I have been asked to explore options for adding ARINC 429 support [1]
> into the Linux kernel, primarily to support devices from Holt Integrated
> Circuits [2] (the request is unrelated to the chip manufacturer).
>
> ARINC429 is a protocol which is widely used in commercial airplanes.
>
> There are various chips supporting this protocol available, as well as
> out-of-tree Linux support. The drivers I have looked at implement it
> either as character device or misc device and typically pass raw receive
> data to userspace.
>
> I can see a number of options for going forward:
> 1) Implement as character device (or possibly misc device) and pass
> raw data to/from user space
> 1a) Just implement a driver for the specific chips
> 2b) Implement some kind of generic infrastructure
> 2) Implement as network driver with a new address family, similar to,
> say, AF_CAN.
>
> Any thoughts / suggestions which approach would be better and, most of all,
> which approach might have a better chance of being accepted upstream ?
Since this is a standard protocol, a driver that just supports a specific
chip (1a) would be the worst option IMHO.
A character device and a network protocol both sound reasonable, but
it really depends on the use cases:
* Does Linux act both as the sender and receiver, or do you want to
support just one of the cases (which?)?
* Would you expect to always just transfer a single 32-bit word, or
are there larger chunks of logically contigous data? What are typical
and maximum sizes for those?
* Would you expect the kernel to filter for specific data on the
receiver side?
* Would a user space receiver want to always see all data from one
sender, or only the latest word?
Arnd
next prev parent reply other threads:[~2013-06-19 21:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-19 20:29 Adding support for ARINC429 into the Linux kernel Guenter Roeck
2013-06-19 21:45 ` Arnd Bergmann [this message]
2013-06-20 4:10 ` Guenter Roeck
2013-06-20 8:52 ` Arnd Bergmann
2013-06-28 21:53 ` Guenter Roeck
2013-07-01 10:06 ` Pavel Machek
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=201306192345.31106.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=davem@davemloft.net \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=netdev@vger.kernel.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.