From patchwork Mon Apr 3 06:21:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 9658803 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 DC27D60352 for ; Mon, 3 Apr 2017 06:21:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE00C28429 for ; Mon, 3 Apr 2017 06:21:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2A122843B; Mon, 3 Apr 2017 06:21:37 +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 50B1028429 for ; Mon, 3 Apr 2017 06:21:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751772AbdDCGVg (ORCPT ); Mon, 3 Apr 2017 02:21:36 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:46875 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751344AbdDCGVY (ORCPT ); Mon, 3 Apr 2017 02:21:24 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0ONT005KULNLUA00@mailout1.w1.samsung.com>; Mon, 03 Apr 2017 07:21:21 +0100 (BST) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170403062120eucas1p297cb6f0fc973fcc8b3e207e1cecde19f~xzu-IQy_E0795507955eucas1p2d; Mon, 3 Apr 2017 06:21:20 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 36.38.04459.0E9E1E85; Mon, 3 Apr 2017 07:21:20 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170403062120eucas1p1369bcd47ca09d99c955baa551cdb1e06~xzu_dCGBf2360123601eucas1p1p; Mon, 3 Apr 2017 06:21:20 +0000 (GMT) X-AuditID: cbfec7f1-f796e6d00000116b-46-58e1e9e05b66 Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id BB.D6.20206.3F9E1E85; Mon, 3 Apr 2017 07:21:39 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0ONT006EQLNBVO80@eusync2.samsung.com>; Mon, 03 Apr 2017 07:21:19 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Greg Kroah-Hartman , Seung-Woo Kim , Joonyoung Shim , Inki Dae Subject: [PATCH v3 3/3] serial: samsung: Remove useless spinlock Date: Mon, 03 Apr 2017 08:21:01 +0200 Message-id: <1491200468-28463-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1491200468-28463-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAIsWRmVeSWpSXmKPExsWy7djPc7oPXj6MMDj2X9Vi44z1rBbNi9ez WUy6P4HF4sW9iywW589vYLeYcX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sFY2nupgaGHvYuhg5OCQETCSOvqjtYuQEMsUk LtxbDxTm4hASWMIocXLlSyYIp4lJYtPdt6wgVWwChhJdb7vYQGwRAWeJ2WcXMoHYzAIvmSQO bhYEGSos4CAxYUUNSJhFQFXiytzT7CA2r4CHRNeehYwQy+QkTh6bDDaSU8BTYu7+G8wgthBQ zbm+HvYJjLwLGBlWMYqklhbnpucWG+kVJ+YWl+al6yXn525iBAb3tmM/t+xg7HoXfIhRgINR iYdXw/lhhBBrYllxZe4hRgkOZiUR3nhgbAjxpiRWVqUW5ccXleakFh9iNAU6aiKzlGhyPjDy 8kriDU0MzS0NjYwtLMyNjJTEead+uBIuJJCeWJKanZpakFoE08fEwSnVwFg+o/uL3vefriJq 5WvP/3oU3XF7xtatChW/XkmzMFzOWLs2faFqMN89Xt+dDlyFC4z61c9Jrtkr3M/x4/BVtfzn Mybo9ja6W/5ZbfXO5NjRpC+73gSc8FsU9PGRhrjdzmbD+S0KeqYqwX0FrSbMt8PnyJ2+pME9 uev8Z6WQ6NrTqrw9bLsCvZVYijMSDbWYi4oTAROTZA2EAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170403062120eucas1p1369bcd47ca09d99c955baa551cdb1e06 X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRs=?= =?UTF-8?B?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?TWFyZWsgU3p5cHJvd3NraRtTUlBPTC1LZXJuZWwgKFRQKRtT?= =?UTF-8?B?YW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170403062120eucas1p1369bcd47ca09d99c955baa551cdb1e06 X-RootMTR: 20170403062120eucas1p1369bcd47ca09d99c955baa551cdb1e06 References: <1491200468-28463-1-git-send-email-m.szyprowski@samsung.com> 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 Spinlock taken only for dma_map_single() for TX buffer is completely useless and doesn't protect anything, so remove it to simplify the code. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski --- drivers/tty/serial/samsung.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index ca0bcd7fd61f..8aca18c4cdea 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -906,13 +906,9 @@ static int s3c24xx_serial_request_dma(struct s3c24xx_uart_port *p) goto err_free_rx; } - spin_lock_irqsave(&p->port.lock, flags); - /* TX buffer */ dma->tx_addr = dma_map_single(p->port.dev, p->port.state->xmit.buf, UART_XMIT_SIZE, DMA_TO_DEVICE); - - spin_unlock_irqrestore(&p->port.lock, flags); if (dma_mapping_error(p->port.dev, dma->tx_addr)) { ret = -EIO; goto err_unmap_rx;