From: joravec@drewtech.com (Joey Oravec)
To: linux-arm-kernel@lists.infradead.org
Subject: kernel driver for rs232 serial peripheral
Date: Thu, 25 Aug 2011 17:28:25 -0400 [thread overview]
Message-ID: <4E56BE79.4030103@drewtech.com> (raw)
Fellow ARM developers,
We make a multi-function chip (rtc, gpio, nvram, etc) for embedded
applications that has an rs232 serial interface. My goal is to write an
MFD kernel driver that speaks serial to this device and implements
interfaces. Other busses like spi and i2c are pretty straightforward in
the kernel but serial feels a lot more complicated. To talk to this
device from the kernel it seems like I need to:
- Call tty_register_ldisc to create a line discipline
- Call tty_register_driver and setup a driver
- Require userspace to call setserial and change the line discipline
This might work, but the documentation implies that a line discipline is
for a protocol, not for connecting a device driver to a serial port. Is
there any kind of easier-to-use serial class similar to i2c or spi where
I can just setup a platform device/driver on a specific serial port? Am
I missing an easier solution?
-joey
next reply other threads:[~2011-08-25 21:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-25 21:28 Joey Oravec [this message]
2011-08-25 21:38 ` kernel driver for rs232 serial peripheral Arnd Bergmann
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=4E56BE79.4030103@drewtech.com \
--to=joravec@drewtech.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).