]> git.karo-electronics.de Git - linux-beck.git/commit
tty: serial: msm_serial: code cleanup in msm_console_setup
authorPramod Gurav <pramod.gurav@smartplayin.com>
Mon, 12 Jan 2015 13:45:32 +0000 (19:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:11:25 +0000 (10:11 -0800)
commit4daba33466a81197e65c1a86cc1e1d1ca4e70939
tree3ac70e06068fea4fa4d76407deff8e19497cc520
parent0a0d412abe473c37ddec8d3f6c0b84c58f1bb061
tty: serial: msm_serial: code cleanup in msm_console_setup

The change does following:
 - baud, flow, bits, parity were being overwritten as they were
   being reinitialized after parsing.  Initialize them when they are
   declared so that user provided setting are not overwritten.
 - msm_set_baud_rate() is anyway called in uart_set_options when it calls
   msm_set_termios(). msm_reset() is called when we change the baud rate.
   Hence doing away with both of these calls.
 - CR_CMD_PROTECTION_EN and CR_TX_ENABLE settings are done in msm_set_baud_rate.
   So do away with this here.

Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/msm_serial.c