All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodolfo Giometti <giometti@enneenne.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PXA27x usbtty start up sequence
Date: Mon, 14 May 2007 08:35:07 +0200	[thread overview]
Message-ID: <20070514063506.GD7571@enneenne.com> (raw)
In-Reply-To: <20070513132536.6ab397df@localhost.localdomain>

On Sun, May 13, 2007 at 01:25:36PM +0100, Bryan O'Donoghue wrote:
> 
> Hmm, you might want to change
> 
> unsigned int len = 0;
> while(len > 0) {
> 	usbtty_poll();
> 
> 	space = maxlen - usbtty_output.size;
> 	if(space){
> 		/* Do stuff */
> 	}
> }
> 
> to
> 
> 
> /* Not tested */
> unsigned int len = 0;
> while(len > 0) {
> 	usbtty_poll();
> 
> 	/* Do stuff */
> }
> 
> in __usbtty_puts()

Ok, I'll test it. This should remove the problem that the system
doesn't boot if no connected?

> puts() I guess _should_ be a 'best effort'. Better, still, maybe
> we could add an environment variable which would switch puts()
> between flow-control and 'best effort', so that people have the
> choice.
> 
> /* Not tested */
> unsigned int len = 0;
> while(len > 0) {
> 	usbtty_poll();
> 	space = maxlen;
> 
> 	if(environment_variable_use_tty_flow_control)
> 		space = maxlen - usbtty_output.size;
> 	
> 	if(space){
> 		/* Do stuff */
> 	}
> }

If I set environment_variable_use_tty_flow_control to "no", how I can
restore it to "yes"?

Thanks,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127

  reply	other threads:[~2007-05-14  6:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-12 23:19 [U-Boot-Users] PXA27x usbtty start up sequence Rodolfo Giometti
2007-05-13 12:25 ` Bryan O'Donoghue
2007-05-14  6:35   ` Rodolfo Giometti [this message]
2007-05-18 17:15   ` Rodolfo Giometti
2007-05-20 13:54     ` Bryan O'Donoghue
2007-05-20 16:07       ` Rodolfo Giometti
2007-05-20 21:40         ` Bryan O'Donoghue
2007-05-20 22:23           ` Rodolfo Giometti
2007-05-20 23:11             ` Bryan O'Donoghue
2007-05-20 23:59               ` Bryan O'Donoghue

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=20070514063506.GD7571@enneenne.com \
    --to=giometti@enneenne.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.