From patchwork Fri Dec 14 11:34:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 153820 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1950381ljp; Fri, 14 Dec 2018 03:34:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/XFm6u5bquSIr5ZCw0OpD1JJRcmxqnx44FMfaBZ/LrQodMyaJSvhkHIB51/5ixcskyarDsY X-Received: by 2002:a62:3811:: with SMTP id f17mr2543249pfa.206.1544787261879; Fri, 14 Dec 2018 03:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544787261; cv=none; d=google.com; s=arc-20160816; b=hie3M/qkEwEWVJDh1z0JpB87C8cJpK7EuQMjX5wDcwNfuvmwsrkaYqpxbZCix/JIQY VKPFLOCMmwdG3VFmemDLppHdQmOVBFM/qDGX7kTbiH91v/VvFe/3MaRGE4LJynyGREwY 0p9s/VwmV2QWKw2VD/chrxNP+hvOM9wnEr3BPUv1/HcjWsxR4oxPCDQLgt3q9R20EaGc EVWJIWmJ1tJKUhOCMLP4vvZ8qNJj4dIlpONsSVs+er3JiVebDQ0jA8bsw76ODwxPo2Da K2KZkvhCrsluVm0SPYXg8sadwIvMizNG9CH9QQWwfAc7s9kusCfJFRk4buDYqgHV/a6h RHXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=AKUsgv6gspXAloJymujKie5fq7hFCRFBHPM2TOJW0T4=; b=wWslysvESCmpe9Ke7UVzPGhBMrm1v44qL/maXs9gK++p6dnHTKCxSfMyh1rujdkhtl u6pJIjweKUcHdov7Ddtv7fyLABrGgIKN/TcIvrJnDGoGRR1NKCRQ2kQR0wpKs4UF/S3h dCTSy/yDj9bfagtSlYXVV1mOxfEhEFgNEyWHFCnjsn/QZTchEYCY9aYix5sQ/tmbqko2 5JM87akMMNdNTcDkgXCEIRhPIFBK09PSrdWWYJPbTsszMQGI5UNS6d8Qp9UPRwRuNZzv XKz8LF16gudmdxHTJejQkDQpRryMHPRmR8mIG2yNR+VRyA/L93bmkJxL8miKwx3YlxEo mDSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=nbVRQjSg; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j22si3804848pfi.252.2018.12.14.03.34.21; Fri, 14 Dec 2018 03:34:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=nbVRQjSg; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729691AbeLNLeU (ORCPT + 2 others); 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 ); 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 To: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Beomho Seo , Seung-Woo Kim , Sylwester Nawrocki , Lee Jones , Greg Kroah-Hartman 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+YxZUdw+jxNY5O9ggqqwlDh+/CDaJWYBPYtK26cwgV0gI8Ep0 tAlBmB4S5xY7QHw5kVFi3YXVLBMYJRcwMqxiFE8tLc5NTy02ykst1ytOzC0uzUvXS87P3cQI jNXT/45/2cG460/SIUYBDkYlHt6MSUIxQqyJZcWVuYcYJTiYlUR4w1qFY4R4UxIrq1KL8uOL SnNSiw8xSnOwKInzVjM8iBYSSE8sSc1OTS1ILYLJMnFwSjUwhtpnnzr2Z8MNt8T7+4z9fK/u 2CE596/LundbmV5tTbzp8rRL8B+r7genOnaz4G/3OWoO6U52KlshMnFDd97dOYuvznGU2rFj 3fYtyaofH4ocsn4kNWPZu2uzeTYo7IpU+ZR2XLdgs2iP4WX7dUZWTYK15+WN1gjK5fp1nb0n yP/Zvqr8xbFj6kosxRmJhlrMRcWJAKw8FWnRAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNLMWRmVeSWpSXmKPExsVy+t/xq7qWU4VjDI4dE7TYOGM9q8XpT9vY LZoXr2ezOH9+A7vF/a9HGS0u75rDZjHj/D4mizOLe9kt1h65y25x+E07q8WMyS/ZHLg9Nq3q ZPO4c20Pm8f+uWvYPfq2rGL0+LxJLoA1issmJTUnsyy1SN8ugStj/o/17AVLuCqunFvM3MB4 mqOLkZNDQsBEYvrD7exdjFwcQgJLGCUeNd5ggXCamCR6NvSygVSxCRhKdL3tArNFBJIldv19 wQpSxCzwmEliSssLFpCEsICvxML2SUwgNouAqsTGrp1AYzk4eAVsJfatlofYJi+xesMBZhCb U8BO4tiWTewgthBQydfpXxgnMPIsYGRYxSiSWlqcm55bbKhXnJhbXJqXrpecn7uJERhk2479 3LyD8dLG4EOMAhyMSjy8B6YIxQixJpYVV+YeYpTgYFYS4Q1rFY4R4k1JrKxKLcqPLyrNSS0+ xCjNwaIkznveoDJKSCA9sSQ1OzW1ILUIJsvEwSnVwBhid7k3L8bz9CPmOY3Pc/zu/K75YCC4 1fN+p2bR0ZaDZRc+LNqVsej/tbAv03Nkzqy2jg22vPxkfrfKQ2ktlw+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> Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org From: Beomho Seo Commit 391f93f2ec9f ("serial: core: Rework hw-assited flow control support") has changed the way the autoCTS mode is handled. According to that change, serial drivers which enable H/W autoCTS mode must set UPSTAT_AUTOCTS to prevent the serial core from inadvertently disabling TX. This patch adds proper handling of UPSTAT_AUTOCTS flag. Signed-off-by: Beomho Seo [mszyprow: rephrased commit message] Signed-off-by: Marek Szyprowski --- drivers/tty/serial/samsung.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.17.1 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; } From patchwork Fri Dec 14 11:34:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 153823 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1950647ljp; Fri, 14 Dec 2018 03:34:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/UD+u5lO/0mnpq/2GEvvb30Y5WCHpsbwAG6yrJLiBv0HSkMog061RER7s0lECFWAsHLOo3O X-Received: by 2002:a17:902:2c03:: with SMTP id m3mr2430651plb.6.1544787277567; Fri, 14 Dec 2018 03:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544787277; cv=none; d=google.com; s=arc-20160816; b=0Pw4m3jBkkGZ5ik9Dqrt3eAD2sj85tYW5MVF8peX4zq2/89NIKgFt4saSz/q4AlEer DrXRhqMVabJfLAJIVIMPiAtZz++KQTfWfQzHNK617lG5Hecv/9qLZH7im5fddnbpej1c pHMlJcyukwJDgHrSi7oGZP4357LfEmj1ZnRIRKtPqncWltf1HebF1Aby98lx7Sz2HgkF GxoQ95q+hEF5MPp+ZVoAgAz3xxj4XQl9X6AA2IPptCOKcjVkFpuIN5wOxLi7DoeSwQ8i +PzXbIldiTG4npqDlWaJImviPhY0B99f1/k3nXAYHyuEZU+ePByf3bR2KgrwWbzTrqDs BzTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=jvAUlilNmzd+AU7UdE4TPhi5W8/jx5JGRVZQCh47OGo=; b=bZvfFi0BrDd9U3Cjm5ZLpswIOlRa3wP5DJe8nMcEWoFSySLbg5kQPizhSjd6S3o3Tn EjmHBji/dpLp4M6vuxt/3OI3sFvSo0yhtjKryjQdSaFJudBaQn1R7+rxo+dIYIadT83H ezoZTKjAe6wX7qYH5b2WfR1Ch+jPmfqkkicBJb+vS3QGmoxoKqDEAqb2cXdRDOcD6Kih Ys9YnWR+T4ugpWoTqAk7YffUfmO2HJ+5fGuiJmOjPRWMUWnCBhitkqhtT/bG0i3iIIqi PlyokGV8/w9aKlBfjIQfQuOcHkQg4iTakwYrAZcXCd1yZuVvNUoGAsrB3H00l4n1KKAl /bbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Zit6uncD; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si3773346plj.129.2018.12.14.03.34.37; Fri, 14 Dec 2018 03:34:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Zit6uncD; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729758AbeLNLeg (ORCPT + 2 others); Fri, 14 Dec 2018 06:34:36 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:38136 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbeLNLeU (ORCPT ); Fri, 14 Dec 2018 06:34:20 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181214113419euoutp01ce202c09a08d450a78507e47c3fbfa69~wL9Ph1LzR0527705277euoutp01U; Fri, 14 Dec 2018 11:34:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181214113419euoutp01ce202c09a08d450a78507e47c3fbfa69~wL9Ph1LzR0527705277euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1544787259; bh=jvAUlilNmzd+AU7UdE4TPhi5W8/jx5JGRVZQCh47OGo=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=Zit6uncDILQkdVRZrspaXi7NO8I1BnKEHmEgVc5AnsLfFWHyTv2UdO64ucVzHmi39 yRDSsewxzKLeIw9wFizIEwJkJmxrLS34daO3BHhfC+8K2olrqGqoH+2sha2DQ8UGdg phbjHBi/GEf8yCV05l2Euls6/o5o0LuWFzmykmaA= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181214113418eucas1p23008a61b8b3951444b32157ecbc15a10~wL9PEqZkN0065800658eucas1p2I; Fri, 14 Dec 2018 11:34:18 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id DF.27.04441.A35931C5; Fri, 14 Dec 2018 11:34:18 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181214113418eucas1p2bfb6f0d04010e73f6ca35c3a6664b316~wL9OYpndm2195821958eucas1p2S; Fri, 14 Dec 2018 11:34:18 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-4d-5c13953a858b Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 6C.D8.04284.935931C5; Fri, 14 Dec 2018 11:34:18 +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 To: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Beomho Seo , Seung-Woo Kim , Sylwester Nawrocki , Lee Jones , Greg Kroah-Hartman Subject: [PATCH 3/4] tty: serial: samsung: Increase maximum baudrate Date: Fri, 14 Dec 2018 12:34:09 +0100 Message-id: <20181214113410.22848-4-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+NgFtrPIsWRmVeSWpSXmKPExsWy7djPc7pWU4VjDLa2yVtsnLGe1eL0p23s Fs2L17NZnD+/gd3i/tejjBaXd81hs5hxfh+TxZnFvewWa4/cZbc4/Kad1WLG5JdsDtwem1Z1 snncubaHzWP/3DXsHn1bVjF6fN4kF8AaxWWTkpqTWZZapG+XwJXR9uAtS8FqjoonH9eyNzC2 sHcxcnJICJhItM4/zdTFyMUhJLCCUWLxhrfsEM5nRoneudMYYarOzJgMZgsJLGOUeH3cH6Ko gUni9qrlTCAJNgFDia63XWwgtohAssSzuUcYQYqYBR4ySXRc/MYCkhAWcJE43NUGVsQioCrx c+9asDt4BWwlHszqZ4LYJi+xesMBZhCbU8BO4tiWTWAnSQgsYZOYeLwN6iQXiQ9NR1ggbGGJ V8e3QD0kI9HZcZAJoqGZUaJ9xiyo7h5Gia1zdrBBVFlLHD5+kRXEZhbgk5i0bTrQOg6gOK9E R5sQRImHxJdX3WwQf05klPi7qpVtAqPkAkaGVYziqaXFuempxYZ5qeV6xYm5xaV56XrJ+bmb GIHRevrf8U87GL9eSjrEKMDBqMTDmzFJKEaINbGsuDL3EKMEB7OSCG9Yq3CMEG9KYmVValF+ fFFpTmrxIUZpDhYlcd5qhgfRQgLpiSWp2ampBalFMFkmDk6pBsYdRx3/ODImHw3RuJoWd4bv 3VTTR2WNTrmr1fninBf1zS0L2iu13jp3/dW0n4uULpYtDu47uJJRYXPUCrn2WT9/q7g4Mv0o sYifz/+yQWuqxr/57jt1RMXe+kes5uxPe7jq+rPpRWZ8gfrPyhun/PA8eWdSfs8K05ubPmlM 2vZOtFSt3vbgwSYlluKMREMt5qLiRACSK1j20gIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDLMWRmVeSWpSXmKPExsVy+t/xq7pWU4VjDFb1MFpsnLGe1eL0p23s Fs2L17NZnD+/gd3i/tejjBaXd81hs5hxfh+TxZnFvewWa4/cZbc4/Kad1WLG5JdsDtwem1Z1 snncubaHzWP/3DXsHn1bVjF6fN4kF8AaxWWTkpqTWZZapG+XwJXR9uAtS8FqjoonH9eyNzC2 sHcxcnJICJhInJkxmbGLkYtDSGAJo8S+e11QThOTRM+GXjaQKjYBQ4mut11gtohAssSuvy9Y QYqYBR4zSUxpecECkhAWcJE43NUGVsQioCrxc+9asBW8ArYSD2b1M0Gsk5dYveEAM4jNKWAn cWzLJrAaIaCar9O/ME5g5FnAyLCKUSS1tDg3PbfYUK84Mbe4NC9dLzk/dxMjMMy2Hfu5eQfj pY3BhxgFOBiVeHgPTBGKEWJNLCuuzD3EKMHBrCTCG9YqHCPEm5JYWZValB9fVJqTWnyIUZqD RUmc97xBZZSQQHpiSWp2ampBahFMlomDU6qBcZZu1JZt7zIyXjqc3PJ+602eTqn0lizp/MVb f94W2LpoxuLobZ//aPzKd39ho6X5wkjkdmqSj47pxvcuLzLS9h28pBkjmqFZq/GRb+eK3JVL q1amX3abd2Dx0sPTVJRXus+5aOV9TGzByXW8r6cwLjFvZK2r0nn83ieb//p1/Zbj3AXfvjx8 oaTEUpyRaKjFXFScCABIe2pDLwIAAA== X-CMS-MailID: 20181214113418eucas1p2bfb6f0d04010e73f6ca35c3a6664b316 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181214113418eucas1p2bfb6f0d04010e73f6ca35c3a6664b316 References: <20181214113410.22848-1-m.szyprowski@samsung.com> Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org From: Seung-Woo Kim This driver can be used to communicate with Bluetooth chip in high-speed UART mode, so increase the maximum baudrate to 3Mbps. Signed-off-by: Seung-Woo Kim [mszyprow: rephrased commit message] Signed-off-by: Marek Szyprowski --- drivers/tty/serial/samsung.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c index 2a49b6d876b8..9fc3559f80d9 100644 --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -1287,7 +1287,7 @@ static void s3c24xx_serial_set_termios(struct uart_port *port, * Ask the core to calculate the divisor for us. */ - baud = uart_get_baud_rate(port, termios, old, 0, 115200*8); + baud = uart_get_baud_rate(port, termios, old, 0, 3000000); quot = s3c24xx_serial_getclk(ourport, baud, &clk, &clk_sel); if (baud == 38400 && (port->flags & UPF_SPD_MASK) == UPF_SPD_CUST) quot = port->custom_divisor;