Message ID | 20181214113410.22848-3-m.szyprowski@samsung.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-samsung-soc-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5F78B15A6 for <patchwork-linux-samsung-soc@patchwork.kernel.org>; Fri, 14 Dec 2018 11:34:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50E302D3FE for <patchwork-linux-samsung-soc@patchwork.kernel.org>; Fri, 14 Dec 2018 11:34:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 451FE2D235; Fri, 14 Dec 2018 11:34:43 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 DC5FE2D3FE for <patchwork-linux-samsung-soc@patchwork.kernel.org>; Fri, 14 Dec 2018 11:34:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729686AbeLNLeU (ORCPT <rfc822;patchwork-linux-samsung-soc@patchwork.kernel.org>); Fri, 14 Dec 2018 06:34:20 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:52277 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729665AbeLNLeU (ORCPT <rfc822;linux-samsung-soc@vger.kernel.org>); Fri, 14 Dec 2018 06:34:20 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181214113418euoutp0278c632b4c58f6b534acb6fdb63589afe~wL9PCw0Ne2204822048euoutp02i; Fri, 14 Dec 2018 11:34:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181214113418euoutp0278c632b4c58f6b534acb6fdb63589afe~wL9PCw0Ne2204822048euoutp02i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1544787258; bh=AKUsgv6gspXAloJymujKie5fq7hFCRFBHPM2TOJW0T4=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=nbVRQjSgjY2RUFDc+x5qoysZRJRxC9Zht/guYqsSSaoLxlo+vChlEDDnXJeBns3Yz I1LhIL1ECKBDZYFYmanvkSoNaiK7zPuxUCnyWtYVZWRpLmyKl7RhCx//oUS3lnE1M8 P1/Y4dQWOhXmwM+WG8NjwQfP6W7HHCKQDxdNwcz8= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181214113418eucas1p2ff658c4880042d855f26d9e0363ee681~wL9OlUefb1030910309eucas1p2V; Fri, 14 Dec 2018 11:34:18 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id E2.59.04294.935931C5; Fri, 14 Dec 2018 11:34:17 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181214113417eucas1p2624705c077ae79267082bbf4628951ed~wL9NvhCZz1806618066eucas1p2-; Fri, 14 Dec 2018 11:34:17 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-26-5c1395397274 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 9B.D8.04284.935931C5; Fri, 14 Dec 2018 11:34:17 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PJQ004655GZZA10@eusync3.samsung.com>; Fri, 14 Dec 2018 11:34:17 +0000 (GMT) From: Marek Szyprowski <m.szyprowski@samsung.com> To: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Krzysztof Kozlowski <krzk@kernel.org>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Beomho Seo <beomho.seo@samsung.com>, Seung-Woo Kim <sw0312.kim@samsung.com>, Sylwester Nawrocki <s.nawrocki@samsung.com>, Lee Jones <lee.jones@linaro.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> Subject: [PATCH 2/4] tty: serial: samsung: Properly set flags in autoCTS mode Date: Fri, 14 Dec 2018 12:34:08 +0100 Message-id: <20181214113410.22848-3-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181214113410.22848-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsWy7djPc7qWU4VjDBb+MrLYOGM9q8XpT9vY LZoXr2ezOH9+A7vF/a9HGS0u75rDZjHj/D4mizOLe9kt1h65y25x+E07q8WMyS/ZHLg9Nq3q ZPO4c20Pm8f+uWvYPfq2rGL0+LxJLoA1issmJTUnsyy1SN8ugStj/o/17AVLuCqunFvM3MB4 mqOLkZNDQsBE4t2CZ+xdjFwcQgIrGCVOv17HCuF8ZpSYueEME0zV9IfboaqWMUp8fvkFymlg kri9ajlYFZuAoUTX2y42EFtEIFni2dwjjCBFzAIPmSQ6Ln5jAUkIC/hL/G97BmazCKhKbOza CTSJg4NXwFZi32p5iG3yEqs3HGAGsTkF7CSObdkEtkxCYAWbxKFHn1ghilwk3k2ZwQhhC0u8 Or6FHcKWkejsOMgE0dDMKNE+YxZ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zqy2jg22vPxkfrfKQ2ktlw+vD4Ys5rvuxHEwuXCd /k+eBxO739jp7goqsP0n/9ey/MbJK3aljs8Mt/obf4k647w8xnOhX/TGdZWL7xw3Upuu7iJ7 Kf1W9XolluKMREMt5qLiRAA3Ez3eLgIAAA== X-CMS-MailID: 20181214113417eucas1p2624705c077ae79267082bbf4628951ed X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181214113417eucas1p2624705c077ae79267082bbf4628951ed References: <20181214113410.22848-1-m.szyprowski@samsung.com> <CGME20181214113417eucas1p2624705c077ae79267082bbf4628951ed@eucas1p2.samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-samsung-soc.vger.kernel.org> X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Samsung TM2(e): add Bluetooth support (resend)
|
expand
|
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index da1bd4bba8a9..2a49b6d876b8 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -1365,11 +1365,14 @@ static void s3c24xx_serial_set_termios(struct uart_port *port, wr_regl(port, S3C2410_ULCON, ulcon); wr_regl(port, S3C2410_UBRDIV, quot); + port->status &= ~UPSTAT_AUTOCTS; + umcon = rd_regl(port, S3C2410_UMCON); if (termios->c_cflag & CRTSCTS) { umcon |= S3C2410_UMCOM_AFC; /* Disable RTS when RX FIFO contains 63 bytes */ umcon &= ~S3C2412_UMCON_AFC_8; + port->status = UPSTAT_AUTOCTS; } else { umcon &= ~S3C2410_UMCOM_AFC; }