public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* UART Baud rate change code flow
@ 2017-08-29  8:19 Pankaj Bansal
  0 siblings, 0 replies; only message in thread
From: Pankaj Bansal @ 2017-08-29  8:19 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Hello Edk2 team,

We are trying to change the UART Baud rate dynamically from UEFI shell using "sermode" command in our ARM64 based platform.
I see the code flow of sermode call as below :

ShellCommandRunSerMode() ->	SerialSetAttributes() ->			SerialPortSetAttributes()
                                                          	SerialSetAttributes() <-
					TerminalDriverBindingStart() ->		SerialSetAttributes()  ->		SerialPortSetAttributes() 
					TerminalDriverBindingStart() <-		SerialSetAttributes()  <- 
					TerminalConInReset() ->		SerialReset () ->			 SerialPortInitialize()
					TerminalConInReset() <-		SerialReset() <- 
					TerminalConInTimerHandler() ->	SerialSetAttributes() -> 		SerialPortSetAttributes() 
					TerminalConInTimerHandler() <- 	SerialSetAttributes()
ShellCommandRunSerMode() <-

I am not able to understand why SerialSetAttributes and SerialReset are being called, while the first call to SerialSetAttributes has not yet completed.
Is this code flow right ? am I missing something ?

Thanks & Regards,
Pankaj Bansal



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-29  8:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-29  8:19 UART Baud rate change code flow Pankaj Bansal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox