linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tty: serial: msm_serial: Remove duplicate call to msm_set_baud_rate
@ 2014-12-22 14:44 Pramod Gurav
  2014-12-30  0:43 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Pramod Gurav @ 2014-12-22 14:44 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: David Brown, Daniel Walker, Bryan Huntsman, Greg Kroah-Hartman,
	Jiri Slaby, linux-arm-msm, linux-serial, linux-kernel,
	Pramod Gurav

The function 'msm_set_baud_rate' is called twice while setting up
msm console. Once in msm_console_setup and next when uart_set_options
calls port->ops->set_termios ie. msm_set_termios().

Remove the duplicate call in msm_console_setup. Tested on IFC6410
console.

Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
---
 drivers/tty/serial/msm_serial.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c
index dbc278d..4c4a250 100644
--- a/drivers/tty/serial/msm_serial.c
+++ b/drivers/tty/serial/msm_serial.c
@@ -945,7 +945,6 @@ static int __init msm_console_setup(struct console *co, char *options)
 
 	if (baud < 300 || baud > 115200)
 		baud = 115200;
-	msm_set_baud_rate(port, baud);
 
 	msm_reset(port);
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-30  0:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-22 14:44 [PATCH] tty: serial: msm_serial: Remove duplicate call to msm_set_baud_rate Pramod Gurav
2014-12-30  0:43 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).