From patchwork Tue Sep 27 13:43:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Youngmin Nam X-Patchwork-Id: 9351901 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E792C6077A for ; Tue, 27 Sep 2016 13:43:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D971E29194 for ; Tue, 27 Sep 2016 13:43:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE327291CA; Tue, 27 Sep 2016 13:43:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DD8429194 for ; Tue, 27 Sep 2016 13:43:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754364AbcI0Nn6 convert rfc822-to-8bit (ORCPT ); Tue, 27 Sep 2016 09:43:58 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:36371 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753901AbcI0Nn5 (ORCPT ); Tue, 27 Sep 2016 09:43:57 -0400 Received: from epcpsbgm2new.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OE602GXI0T69950@mailout3.samsung.com>; Tue, 27 Sep 2016 22:43:54 +0900 (KST) X-AuditID: cbfee61b-f79d46d000004922-df-57ea779a1591 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 20.3F.18722.A977AE75; Tue, 27 Sep 2016 06:43:54 -0700 (MST) Received: from NOYOUNGMINN01 ([12.36.166.83]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OE600IRT0T6TO10@mmp1.samsung.com>; Tue, 27 Sep 2016 22:43:54 +0900 (KST) From: =?UTF-8?B?64Ko7JiB66+8?= To: gregkh@linuxfoundation.org, jslaby@suse.com Cc: linux-serial@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH] serial: samsung: add clock controls in s3c24xx_serial_resume_noirq() Date: Tue, 27 Sep 2016 22:43:54 +0900 Message-id: <000d01d218c5$3069cdf0$913d69d0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8BIT X-Mailer: Microsoft Outlook 14.0 Thread-index: AdIYxF0gHnudw29dRjmwSv+ttU9fgA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOIsWRmVeSWpSXmKPExsVy+t9jAd1Z5a/CDa6/0rVoXryezWLKhg9M FjPO72OyOLO4l92BxWP/3DXsHuu3XGXx+LxJLoA5ys0mIzUxJbVIITUvOT8lMy/dVik0xE3X QkkhLzE31VYpQtc3JEhJoSwxpxTIMzJAAw7OAe7BSvp2CW4Zrz58ZSxYy1HRcaaZpYHxJ1sX IyeHhICJxKzdX1ggbDGJC/fWg8WFBJYySpyYYtbFyAVkv2eUmDl3HjNIgk3AUuLVn5NgRSIC +hLrGu+BNTMLOEscubWJCcQWFgiXuH9qD1gNi4CqxJe9J8BqeIF6X//+CGULSvyYDNOrLjFp 3iJmCFtb4sm7C6wQBylI7Dj7mhFil57EqQUHoGpEJPa9eMc4gVFgFpJRs5CMmoVk1CwkLQsY WVYxSqQWJBcUJ6XnGuWllusVJ+YWl+al6yXn525iBEfSM+kdjId3uR9iFOBgVOLhXZH/KlyI NbGsuDL3EKMEB7OSCO+5YqAQb0piZVVqUX58UWlOavEhRlOgZycyS4km5wOjPK8k3tDE3MTc 2MDC3NLSxEhJnLdx9rNwIYH0xJLU7NTUgtQimD4mDk6pBsapZ+c7ZVdInL6yfPa1tdeKHiyO vvvzW2zRsv873Jav0DsuvahP++XLE/FT2f+/aedsqQl6XVu71uKTuatC2T6+g0+WtGh07jnp dXu/jIkLh4b4jeas7U8a1643W3t6VUPApm98G6ae6PT3Ot5s4Kawxted68jHdbzBjfozwwq8 izYdYm6fvfSUEktxRqKhFnNRcSIAhkqJ7boCAAA= X-MTR: 20000000000000000@CPGS Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds clock controls in s3c24xx_serial_resume_noirq() to set S3C64XX_UINTM register. Signed-off-by: Youngmin Nam --- drivers/tty/serial/samsung.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index ae2095a..97f7b3b 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -1921,6 +1921,7 @@ static int s3c24xx_serial_resume(struct device *dev) static int s3c24xx_serial_resume_noirq(struct device *dev) { struct uart_port *port = s3c24xx_dev_to_port(dev); + struct s3c24xx_uart_port *ourport = to_ourport(port); if (port) { /* restore IRQ mask */ @@ -1930,7 +1931,9 @@ static int s3c24xx_serial_resume_noirq(struct device *dev) uintm &= ~S3C64XX_UINTM_TXD_MSK; if (rx_enabled(port)) uintm &= ~S3C64XX_UINTM_RXD_MSK; + clk_prepare_enable(ourport->clk); wr_regl(port, S3C64XX_UINTM, uintm); + clk_disable_unprepare(ourport->clk); } }