diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2010-02-27 00:39:38 +0530 |
---|---|---|
committer | Gary King <gking@nvidia.com> | 2010-03-01 18:31:32 -0800 |
commit | f1d2c093ffdcc37a0ade002752644eaada63bef3 (patch) | |
tree | d8e587fdbefa7da05d1333b300065a8c9579ce2d /drivers | |
parent | 918e6ef3a061cb9f5d5e6117e84e1ef23c2f6a62 (diff) |
tegra uart: Resetting baudrate variable if controller get reset.
Resetting the baudrate variable which stores the current baudrate after
resetting the controller.
Change-Id: Ia1abf68738897941690644252dbc3d3e4bf6bb0f
Reviewed-on: http://git-master/r/712
Reviewed-by: Gary King <gking@nvidia.com>
Tested-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/tegra_hsuart.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/tegra_hsuart.c b/drivers/serial/tegra_hsuart.c index d28778eb6018..8829bbbc8442 100644 --- a/drivers/serial/tegra_hsuart.c +++ b/drivers/serial/tegra_hsuart.c @@ -521,6 +521,7 @@ static void tegra_uart_hw_deinit(struct tegra_uart_port *t) NvRmModuleReset(s_hRmGlobal, t->modid); clk_disable(t->clk); NvRmSetModuleTristate(s_hRmGlobal, t->modid, NV_TRUE); + t->baud = 0; } static int tegra_uart_hw_init(struct tegra_uart_port *t) @@ -535,6 +536,7 @@ static int tegra_uart_hw_init(struct tegra_uart_port *t) t->mcr_shadow = 0; t->lcr_shadow = 0; t->ier_shadow = 0; + t->baud = 0; err = NvRmSetModuleTristate(s_hRmGlobal, t->modid, NV_FALSE); if (err != NvSuccess) { |