kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Q: what is the need for console write callback if there is serial tx (start_tx) ?
Date: Fri, 16 Sep 2016 08:15:24 +0200	[thread overview]
Message-ID: <20160916061524.GB17855@kroah.com> (raw)
In-Reply-To: <CAJ2oMhJQhazxs=G6oUB4mhFVy7=7p__+1z1Yq-MpJ0X6EtUVqg@mail.gmail.com>

On Thu, Sep 15, 2016 at 11:19:51PM +0300, Ran Shalit wrote:
> Hello,
> 
> I am writing a driver with serial tx/rx.

Great!  For what type of hardware?

> I am not sure what is the need console routines, when there is
> serial/uart tx/rx.
> 
> Isn't writing to console, the same as outputing chars to serial ?
> 
> I've tried to find information on this, but found none.

Just follow the "normal" tty api and your driver should be fine and work
with all sorts of consoles and programs and line disciplines.

good luck!

greg k-h

      parent reply	other threads:[~2016-09-16  6:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-15 20:19 Q: what is the need for console write callback if there is serial tx (start_tx) ? Ran Shalit
2016-09-15 20:50 ` Valdis.Kletnieks at vt.edu
2016-09-16  7:11   ` Ran Shalit
2016-09-16  6:15 ` Greg KH [this message]

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=20160916061524.GB17855@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@lists.kernelnewbies.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).