[U-Boot-Users] PXA27x usbtty start up sequence

Rodolfo Giometti giometti at enneenne.com
Fri May 18 19:15:21 CEST 2007


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




More information about the U-Boot mailing list