linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pramod Gurav <gpramod@codeaurora.org>
To: linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: gregkh@linuxfoundation.org, bryanh@codeaurora.org,
	sboyd@codeaurora.org, jslaby@suse.cz,
	Pramod Gurav <gpramod@codeaurora.org>
Subject: [PATCH v2 2/2] tty: serial: msm: Disable pclk when port is closed
Date: Wed,  8 Apr 2015 18:58:53 +0530	[thread overview]
Message-ID: <1428499733-21963-2-git-send-email-gpramod@codeaurora.org> (raw)
In-Reply-To: <1428499733-21963-1-git-send-email-gpramod@codeaurora.org>

Disable the pclk when tty port is closed by user space.

Signed-off-by: Pramod Gurav <gpramod@codeaurora.org>
---
 drivers/tty/serial/msm_serial.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c
index 4c1e9ea..f38565c 100644
--- a/drivers/tty/serial/msm_serial.c
+++ b/drivers/tty/serial/msm_serial.c
@@ -523,6 +523,7 @@ static void msm_shutdown(struct uart_port *port)
 	msm_write(port, 0, UART_IMR); /* disable interrupts */
 
 	clk_disable_unprepare(msm_port->clk);
+	clk_disable_unprepare(msm_port->pclk);
 
 	free_irq(port->irq, port);
 }
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

  reply	other threads:[~2015-04-08 13:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08 13:28 [PATCH v2 1/2] tty: serial: msm: Add mask value for UART_DM registers Pramod Gurav
2015-04-08 13:28 ` Pramod Gurav [this message]
2015-04-08 23:51   ` [PATCH v2 2/2] tty: serial: msm: Disable pclk when port is closed Stephen Boyd
2015-04-09  5:36     ` Pramod Gurav
2015-04-09 14:04       ` Stephen Boyd
2015-04-08 23:31 ` [PATCH v2 1/2] tty: serial: msm: Add mask value for UART_DM registers Stephen Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1428499733-21963-2-git-send-email-gpramod@codeaurora.org \
    --to=gpramod@codeaurora.org \
    --cc=bryanh@codeaurora.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jslaby@suse.cz \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=sboyd@codeaurora.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).