From patchwork Fri Dec 14 11:23:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 153818 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1940561ljp; Fri, 14 Dec 2018 03:23:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/XOBKv9ElkgTXjq9LyLrzNAFTaczMgpw0vBUb50bi/IUkW4JNdcwL010ymPnPmk8WQGC5a5 X-Received: by 2002:a63:4611:: with SMTP id t17mr2329371pga.119.1544786623541; Fri, 14 Dec 2018 03:23:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544786623; cv=none; d=google.com; s=arc-20160816; b=l6ePRLt15wCMddMGcTilfEIkOPWrqTicYbDGSpm47Jy8TnNhY2TYgnZjyD7kzY/nAh rgdw5fnU+NV90fFs3NtEw1h5SoMpWnXRhCBll/7r+ZkG9MCwvliBRH8JzoqdkkvwETU0 5zs6rBvHi4zaD/TIFzzcDLPXh0L+gZ1aPQHBM4M3eLjpZ5slIbj1phaluaHahrO8xBGV 5jmOGMC3HeX7lLg/9D4zMe+ZC1NmiDgiACn5Xf7rvKzaiESXUmvvTjWn143WYr4WCu9E wJui2Nw4UXquVS8W3vMtVRw9DvN65XITzVMUrtkzp1qVUyPfIxqk8xmqGwwaQxTXs/1i AnBA== 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=eMnjguDvuLx4MKPbocS4zOk47nrZP9T/E+If4/5I7SkRJkSIQqpBwCcWib2H7UUm9x 3g+jgm3bbk9ymMWeTzlASNyEktvkS3HUQ0u9L/Acl28V5mfZi771dnunmwa0+NTg0Dwg ZIaFjjZBGj/7rq+rSWZCYQ4HPjoJzoY9n5BtlpsDxWQ+zvcY3sUnwDm3LCdr9QDhjGpy sHOoXvkLf7wNHU3duSuvSJUz1E40os8qeQP2pxJDS05XgrBGGPdPMLbOb/SUBs2ajHup EeJl5pcQCwj37lsfGm0/V44Pp+oS+hdIje4WJw1r17McMeH66boSnsRs2kynlLaA72ub pMlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=AO24Tn5y; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 b36si4034486pla.354.2018.12.14.03.23.43; Fri, 14 Dec 2018 03:23:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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=AO24Tn5y; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 S1728415AbeLNLXm (ORCPT + 3 others); Fri, 14 Dec 2018 06:23:42 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:34808 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728881AbeLNLXm (ORCPT ); Fri, 14 Dec 2018 06:23:42 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181214112340euoutp01437f1cdea9fba3f23f79dcc8deaabbea~wLz9DDxyQ3143431434euoutp01C; Fri, 14 Dec 2018 11:23:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181214112340euoutp01437f1cdea9fba3f23f79dcc8deaabbea~wLz9DDxyQ3143431434euoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1544786620; bh=jvAUlilNmzd+AU7UdE4TPhi5W8/jx5JGRVZQCh47OGo=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=AO24Tn5yJMBAIjb2tngpV9gJR0mZHFuOoiwb8MEdSfECft4oSd8h1+1Y+x7MD3NPI 0yGwMeYgYr0HsK4B9bZWEWV9H16IBBn/3813E7IJeF81ygjC5Ng8pSCqVzgg3t9YLD NFpUhUsgRdqr/oKkDlVTm+hjAN4TDhG+R7I1zrI8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181214112340eucas1p2755de2be211aff78f087ea1422a9066e~wLz8anoSx1463214632eucas1p2h; Fri, 14 Dec 2018 11:23:40 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id B9.F5.04441.BB2931C5; Fri, 14 Dec 2018 11:23:39 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181214112339eucas1p243f3db31e60fd928ea7a3e37b86a5b22~wLz7uJtV71465714657eucas1p2U; Fri, 14 Dec 2018 11:23:39 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-ce-5c1392bb2a8a Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 6F.1C.04128.BB2931C5; Fri, 14 Dec 2018 11:23:39 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PJQ00L9B4Z6IX10@eusync4.samsung.com>; Fri, 14 Dec 2018 11:23:39 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Beomho Seo , Seung-Woo Kim , Sylwester Nawrocki Subject: [PATCH 3/4] tty: serial: samsung: Increase maximum baudrate Date: Fri, 14 Dec 2018 12:23:24 +0100 Message-id: <20181214112325.9551-4-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181214112325.9551-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrIIsWRmVeSWpSXmKPExsWy7djP87q7JwnHGKxpsbXYOGM9q8XpT9vY Lc6f38BuMeP8PiaLtUfuslscftPOajFj8ks2B3aPTas62Tz6tqxi9Pi8SS6AOYrLJiU1J7Ms tUjfLoEro+3BW5aC1RwVTz6uZW9gbGHvYuTgkBAwkTjXJdzFyMUhJLCCUeLwpF+MEM5nRonf Le9Yuxg5wYo+9z5jg0gsY5Q4erYBqqqBSeLA95dgVWwChhJdb7vYQGwRAVWJz20L2EGKmAV6 mCRmTN7JDJIQFnCRONzVBlbEAlS0ZuoFJhCbV8BGYsHGvYwQ6+QlVm84AFbPKWArMa91DyvI IAmBr6wS348+ZYEocpF4c2YGG4QtLPHq+BZ2CFtG4vLkbhaIhmZGifYZs9ghnB5Gia1zdkB1 WEscPn4R7G5mAT6JSdumM0OCg1eio00IosRD4sGD/VB/TmCU+PRyGfMERskFjAyrGMVTS4tz 01OLDfNSy/WKE3OLS/PS9ZLzczcxAiPu9L/jn3Ywfr2UdIhRgINRiYc3Y5JQjBBrYllxZe4h RgkOZiUR3rBW4Rgh3pTEyqrUovz4otKc1OJDjNIcLErivNUMD6KFBNITS1KzU1MLUotgskwc nFINjKLC14TjjrlPci3dzRKRFPXYcvbFjWXBStyZZV5PU6IKJr/Lc7l0QKzizaXXjy1414d/ 953UU+05adrJhbvyRNavWyresKXd/YnW+8rN0XNlxX6EsngvXnb729kDm2rf6y3Y9ujIrXb5 OexqwfJfbdesSn2yRmJXSUrGymqeVWvU9/Qnlrr1/1diKc5INNRiLipOBABH0wGZtAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHJMWRmVeSWpSXmKPExsVy+t/xa7q7JwnHGMy4KW2xccZ6VovTn7ax W5w/v4HdYsb5fUwWa4/cZbc4/Kad1WLG5JdsDuwem1Z1snn0bVnF6PF5k1wAcxSXTUpqTmZZ apG+XQJXRtuDtywFqzkqnnxcy97A2MLexcjJISFgIvG59xlbFyMXh5DAEkaJH4enM0I4TUwS pzf+YAKpYhMwlOh628UGYosIqEp8blvADlLELNDHJNHxdhozSEJYwEXicFcbWBELUNGaqRfA mnkFbCQWbNzLCLFOXmL1hgNg9ZwCthLzWvewgthCQDW9ny4zT2DkWcDIsIpRJLW0ODc9t9hI rzgxt7g0L10vOT93EyMwVLYd+7llB2PXu+BDjAIcjEo8vAemCMUIsSaWFVfmHmKU4GBWEuEN axWOEeJNSaysSi3Kjy8qzUktPsQozcGiJM573qAySkggPbEkNTs1tSC1CCbLxMEp1cDYobz+ XFH9c4PbH39H+PQzbTIIulKbv8r5gdKGLv49theWbFM8K6bH2XvjYqd9ZWhniI6M7T79736n 762ys9A3n9jMd1PznUmmm/nuGxNmRc1Z+GM5y2vhvbanjIsnLapdaXh/b7RJ3QyfHbrf527s rZ/c+UooV+VR8PGQA622u3/9YnuhM6tEiaU4I9FQi7moOBEA6//sdBECAAA= X-CMS-MailID: 20181214112339eucas1p243f3db31e60fd928ea7a3e37b86a5b22 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181214112339eucas1p243f3db31e60fd928ea7a3e37b86a5b22 References: <20181214112325.9551-1-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 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;