Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp199945imj; Thu, 14 Feb 2019 18:32:16 -0800 (PST) X-Google-Smtp-Source: AHgI3IYtaAiWxFLtPeQktd/zN4eRY0InRT5+McdZEHi71rulReFivjXAT1oXvpYOI7uSp5HAeUTx X-Received: by 2002:a65:620c:: with SMTP id d12mr6912980pgv.328.1550197936584; Thu, 14 Feb 2019 18:32:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550197936; cv=none; d=google.com; s=arc-20160816; b=OUMrlAHZ+A7VL8IJybfKIsJk03tRzQVz7fQiaJCSfJSzqj2Et2QYxN1D6JtKD/xg29 AHGpUS7I8LtTupq53+2gbtEMJPpYcTnSesDhgtsY5euz+eL7R1TgZuX+p1DjbEDbgsTu QpqRv9bAEZE9GqV50kHc2BJv8SKq1Vfge6fKiEByS3q6i0dgZiWXfG/ab4TA8zW2PZgy gL1RiijMzJxCcxdRJjvczzMsx5FYmHpZF+BVzzlqPtM7sG+9COmdgfYiJ/ItaggOMb6b H8873tQEABsroUBbGGJEzY0DY/L3JJvhXatMYvIxP9BXZ+e0DhviI+p/ALUUf4nayzGn OSnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6Q74RtATUZ1fyUYWx+wB09OLt9bR99/RpDCUDSeG/hk=; b=Zlx+vL9Qorez27OW6TMaQa4vcq6dyhsPwhAp0x62qRoTV1OxFTe+WhZNUnxGwNBqiJ ktDW45WGheHU3P6UlHNsJCNg8PCmdp9O1OUcZYJw/rKnUvnht7ktwYIl1mrrNJisqthL PtEBwUP8rBCFDHp0D+269GtpKjtpiy/LjpQFLKFF3BX4yLwlaS7LhNXEqUkNSpn3lzFq hZkcp8Q4j2zfdD9tBZclO2JzUbYSwIZ9uGBL4NMV+i4vqZDna//5c07QjHlEc/+4beGw h0OvkZcHAd95Y32Tz4DsAzhr4Tvo0ZUVz2lJrEhsFO5tqlg8wSBHHfs0qARui2ce/BMs mFsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oBfTigwX; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si4019883pgq.442.2019.02.14.18.32.00; Thu, 14 Feb 2019 18:32:16 -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=@kernel.org header.s=default header.b=oBfTigwX; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392156AbfBOCQF (ORCPT + 99 others); Thu, 14 Feb 2019 21:16:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:55542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406011AbfBOCQB (ORCPT ); Thu, 14 Feb 2019 21:16:01 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 90685222D0; Fri, 15 Feb 2019 02:15:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550196960; bh=gq/RLeRTKnj3TgOilfzLSAG1JJM12SK4UtJ++I4+tTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oBfTigwXbXJ77iCWTxc/GLybQJ/kLD9SbDbYBCvqVNB5Xt9CAk66OYwTetMQVVIcC dXC6CRErHznfbKUFERJLv3Tl4QLwQ3Vyn2jIntTLkvf8+wLOwZyN81nakvT3XnwVU/ WMmgph4pco344vZkcY2tH8T37zRybN6xx+2I5Too= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Tomonori Sakita , Atsushi Nemoto , Greg Kroah-Hartman , Sasha Levin , linux-serial@vger.kernel.org Subject: [PATCH AUTOSEL 3.18 09/16] serial: fsl_lpuart: fix maximum acceptable baud rate with over-sampling Date: Thu, 14 Feb 2019 21:15:39 -0500 Message-Id: <20190215021546.179605-9-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215021546.179605-1-sashal@kernel.org> References: <20190215021546.179605-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tomonori Sakita [ Upstream commit 815d835b7ba46685c316b000013367dacb2b461b ] Using over-sampling ratio, lpuart can accept baud rate upto uartclk / 4. Signed-off-by: Tomonori Sakita Signed-off-by: Atsushi Nemoto Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/fsl_lpuart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 92b7a5bf7c4d..8c4f561a09c0 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -1422,7 +1422,7 @@ lpuart32_set_termios(struct uart_port *port, struct ktermios *termios, } /* ask the core to calculate the divisor */ - baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16); + baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 4); spin_lock_irqsave(&sport->port.lock, flags); -- 2.19.1