Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp844285imu; Fri, 21 Dec 2018 08:15:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN6RZxJ/fUX8oME/xZHUUdN+gHO4v4FMaOMRfXhSq8NeN2zvyDze7rIGK9kLLs4y5Za7IFll X-Received: by 2002:a63:1c09:: with SMTP id c9mr2979258pgc.200.1545408949949; Fri, 21 Dec 2018 08:15:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545408949; cv=none; d=google.com; s=arc-20160816; b=UtTjSJ1555bgfC84PBPwlVa/4ew/fd52HQqH9qI2BOMyKS6w+NV1KJ+gfOT+VgWQyp 3EBLHW2GBevGNd4p39Yr4oGMG5ZY1dKn0w/ddLjvj9FIP6baWzWzA4MM7jLggFtMcNU5 yqrmezSQ9oavdsgGvTTbH02TLLRHPbVJXZ1GO2oAz0z2h0GJDhKN0RbFpzsO+6xSeXJ7 doK7mSgjMNQlGLJrpEtxWgLeBUCVnARGhYZpWdMhqBiVgfHvuXUKub6BHBdZOGoa70Ix vca0GMutk8dfpkaANpADaKv6xqweMOrkGkCBCoTqfI0OGBvR3dK7dOvi2U1hETf0a0bi i9UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9CMCVunv5zz/w8NhpB+qFHYsYIYVKqaykMl52Z2Q6Ww=; b=GGLXMFUt1ax0aONDadEUnzLl6momNhGpumc4cpFAag6RafwC6SiPUH/dHwo54TFTOb rbGKstz/hSgDcccXK01Tt9hUH6z7DLha6Xl/6LbrMQn+CoGoPstegNy3+0/f2bj5a6XU tL3hky9uICDRW2qsGoWKNkVKy8pxGNYKnmlw3HD/An9/oK5EDvic7yr+FvaScVNkCbwI SBjotDkpN0swb32GUcd4PBOJGLUJypkQIDLjKWvEtUc+gl+EnKY6pDgLrHwomvqFF2K8 WG1r10Le+vEcYFJjyoFYuQvoQWeynwtV+FK1LgI6A51jxu481CIXWogmwIb9nXQQUthL leLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b39Cq49a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15si19931030pgt.498.2018.12.21.08.15.33; Fri, 21 Dec 2018 08:15:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@linaro.org header.s=google header.b=b39Cq49a; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388374AbeLUKP6 (ORCPT + 99 others); Fri, 21 Dec 2018 05:15:58 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45098 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731021AbeLUKP5 (ORCPT ); Fri, 21 Dec 2018 05:15:57 -0500 Received: by mail-wr1-f68.google.com with SMTP id t6so4629988wrr.12 for ; Fri, 21 Dec 2018 02:15:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=9CMCVunv5zz/w8NhpB+qFHYsYIYVKqaykMl52Z2Q6Ww=; b=b39Cq49aBQgzbO6s1LEw0HGuwdgkdp0njU22ECkdxSSchab+innw6t/VNGUey1uZSH 0T8Q8InbQiuQQi0A2ZbU1ovJBQfTi8x8ZZ/tRybpHopY5GVh+XhxkM/iQUu17hmPAGp8 31RPhTQrOr4Ip5nCIrMFnh5jZoWBlhtKfbFnE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=9CMCVunv5zz/w8NhpB+qFHYsYIYVKqaykMl52Z2Q6Ww=; b=C3r6UFiUW/B5w3/8pyComMDK4/7+xJVP4P/Jmcc/H0xVnAne6HPKoCUbaZygCDKnyW Y+Hlo4C6WzFL6qsIyDdp90xqwY6mMt6Hd8N86QGvksI/4jJIc/Y608RZ/A/Zq+pzbBsL 4ikc2UupH4jnsm5P7uiFqgxjh/q3XDzGLBAxID2BqYQJJtSB9e3KJ9IEYMvCzlrC+lwB STekTBu2RT4ptY7igTSASmiyZfzKXIDeRh9qN4Fa6RIXhrVlzjQCOuKkCvlX6oJdk41Q FDTSNKlmG4cZ5tcnhEqHPRSK3V8Mx7U6XIGnOjGJ4DzY1d+6Jx2iVkI0DEHkCgJKwqFv SfNg== X-Gm-Message-State: AJcUukeaQ9hb/9U+Zl0B7//nfpWctxBtPyY94pwLs6hzh4+9jy9+ewx0 fUr0ctfiMGsCX8dDCb4xLHBkLpuEVpg= X-Received: by 2002:adf:b190:: with SMTP id q16mr1914394wra.95.1545387356037; Fri, 21 Dec 2018 02:15:56 -0800 (PST) Received: from dell ([95.149.164.119]) by smtp.gmail.com with ESMTPSA id w16sm12031250wrp.1.2018.12.21.02.15.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Dec 2018 02:15:55 -0800 (PST) Date: Fri, 21 Dec 2018 10:15:53 +0000 From: Lee Jones To: Marek Szyprowski Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Beomho Seo , Seung-Woo Kim , Sylwester Nawrocki , Greg Kroah-Hartman Subject: Re: [PATCH 3/4] tty: serial: samsung: Increase maximum baudrate Message-ID: <20181221101553.GI13248@dell> References: <20181214113410.22848-1-m.szyprowski@samsung.com> <20181214113410.22848-4-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181214113410.22848-4-m.szyprowski@samsung.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 Dec 2018, Marek Szyprowski wrote: > 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(-) > > 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); Does that mean the low speed devices will stop working? It looks like this should be dynamically configurable based on what device is connected to it, no? > quot = s3c24xx_serial_getclk(ourport, baud, &clk, &clk_sel); > if (baud == 38400 && (port->flags & UPF_SPD_MASK) == UPF_SPD_CUST) > quot = port->custom_divisor; -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog