From: Rodolfo Giometti <giometti@enneenne.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PXA27x usbtty start up sequence
Date: Fri, 18 May 2007 19:15:21 +0200 [thread overview]
Message-ID: <20070518171521.GA4199@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()
No, this doesn't resolve the problem.
> 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 */
> }
> }
I think this is not useful since after the timeout has expired if I
try to connect with usbtty the system boots immediately! O_o
Ciao,
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
next prev parent reply other threads:[~2007-05-18 17:15 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
2007-05-18 17:15 ` Rodolfo Giometti [this message]
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=20070518171521.GA4199@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox