msm_serial_hs_lite: set uart clock rate to zero after disabling clock

Change-Id: Ib6413cae2ee32cd5e6c049f4a22ee24b808cb2fa
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
This commit is contained in:
Mayank Rana
2012-01-11 21:35:00 +05:30
parent cf61df743a
commit 22e4b386af

View File

@@ -2,7 +2,7 @@
* drivers/serial/msm_serial.c - driver for msm7k serial device and console * drivers/serial/msm_serial.c - driver for msm7k serial device and console
* *
* Copyright (C) 2007 Google, Inc. * Copyright (C) 2007 Google, Inc.
* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. * Copyright (c) 2010-2012, Code Aurora Forum. All rights reserved.
* *
* This software is licensed under the terms of the GNU General Public * This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and * License version 2, as published by the Free Software Foundation, and
@@ -1007,6 +1007,10 @@ static void msm_hsl_power(struct uart_port *port, unsigned int state,
break; break;
case 3: case 3:
clk_en(port, 0); clk_en(port, 0);
ret = clk_set_rate(msm_hsl_port->clk, 0);
if (ret)
pr_err("%s(): Error setting UART clock rate to zero.\n",
__func__);
break; break;
default: default:
pr_err("%s(): msm_serial_hsl: Unknown PM state %d\n", pr_err("%s(): msm_serial_hsl: Unknown PM state %d\n",