All of lore.kernel.org
 help / color / mirror / Atom feed
From: shawn Bai <programassem@hotmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Question about interrupt-driven mode duart on MPC837xE-rdb board.(with the subject)
Date: Mon, 15 Aug 2011 02:02:17 +0000	[thread overview]
Message-ID: <SNT115-W2153FE936DAC9719FF5D67D2260@phx.gbl> (raw)
In-Reply-To: <4E47DADF.30600@aribaud.net>




----------------------------------------
> Date: Sun, 14 Aug 2011 16:25:35 +0200
> From: albert.u.boot at aribaud.net
> To: programassem at hotmail.com
> CC: u-boot at lists.denx.de
> Subject: Re: [U-Boot] Question about interrupt-driven mode duart on MPC837xE-rdb board.(with the subject)
>
> Le 14/08/2011 05:10, shawn Bai a ?crit :
>
> > >Hi Shawn,
> > >Le 13/08/2011 17:33, shawn Bai a ?crit :
> > >>
> > >>
> > >> Hello, guys.
> > >>
> > >> I have 2 questions about duart on MPC837xE-rdb board.
> > >>
> > >> 1. why not implement duart driver in interrupt-driven mode, in addition to polling-mode?
> > >>
> > >> from the existing implementation of uboot, I find there is only polling-mode duart driver.
> >
> > >Well, why would interrupts be needed for? Remember that U-Boot is not a
> > >multi-tasking OS, but a single-thread bootloader, so we tend to use
> > >interrupts only if there is a good case for it as far as bootloading is
> > >concerned.
> >
> > Well, I see. This is the answer I wanna know for a period of time.
> >
> > Speaking of interrupt-driven mode DUART, it depens on the requirement from upper application.
> >
> > DUART is used in redundant communication. Each end on DUART has no idea when the data from the other
> >
> > end will come. and the cpu time cannot be wasted on waiting, even a little. So interrupt-driven mode
> >
> > DUART is what we want.
>
> Well... If you cannot waste even a little CPU time on waiting for the
> UART, that pretty much amounts to saying you cannot work from inside a
> bootloader; you need a real-time OS. That's the reason they exist.

      parent reply	other threads:[~2011-08-15  2:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-14  3:02 [U-Boot] (no subject) shawn Bai
2011-08-14  3:10 ` [U-Boot] Question about interrupt-driven mode duart on MPC837xE-rdb board.(with the subject) shawn Bai
2011-08-14 14:25   ` Albert ARIBAUD
2011-08-14 15:50     ` Albert ARIBAUD
2011-08-15  2:02     ` shawn Bai [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=SNT115-W2153FE936DAC9719FF5D67D2260@phx.gbl \
    --to=programassem@hotmail.com \
    --cc=u-boot@lists.denx.de \
    /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.