Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp206471imj; Thu, 14 Feb 2019 18:41:03 -0800 (PST) X-Google-Smtp-Source: AHgI3IZBh2mjBTwY8aKvc/BhyG0G29Azn1G7Y0DtAMx6zi5ynEUIe8TfFWllB0/fS3H1yBtXdPNj X-Received: by 2002:a17:902:112c:: with SMTP id d41mr7657700pla.177.1550198463057; Thu, 14 Feb 2019 18:41:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550198463; cv=none; d=google.com; s=arc-20160816; b=FGNy5MBnINCj7WgeNIlDT7eqZe4yDeaomdJQAFNiCl+YhdnpO6MnLoBF2u03tNAVDn /vQdI6/QEyyuAavYb353Fl03fGSDTKe0yGT9J9InDyVcs0fntxBYsbULDwj9ktnaHgSR fjDc1GeO3vm84oorHkGi5QxN8/NcIvLnYA/PEbYl47PTWAXAFPBf82UnNHxdXyrp7Res Kd3uKcrm8D4gQTXlTINsdbiUvtXFDLtJFcw7I5WqGWKGrVwSptZTHOvHCosdhbwef/v4 gejkv5/bqlgw0wHypoVb4L2fFDqDBPcr9a/t+dWZcbcK9ITsVEwXoupVgOS7g27onj2p ZfWQ== 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=8YECfcKEF7V4c9GhvCg4B6CVJOF4RNCfCeVTBnTT4XU=; b=eYOpKn0+Cm/iJvuVqff2PHIJjb47zYSJueIzU/F9DOS6vYmgvR/ixsVfqbdnIQo2DE Is4JbnNWT7MMiJ7r3EqRVplx4hCl10IK6dOJrw/YxOMsGUT7m4spOlPWh9W7kgbsNTQa D8Iz/AwFE5/eFTxsyWwZJO25DQg/kAsHhkkg7oJToABOQcLSI/SaFWZH0SWmVCANEIIg NPsHZIeEiFW8GRUBx9VXbiLwDoT8Q/pwZUlwJXHYe9EP+QWW2qPW89UyOwNKggfTwRTh jfJvX5UyUV/fTuLKz2qtB65oVhGThaEsgJl/qerd0pk5oM9Yim1OotEvCwVn+lyoU9aD 6DLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NlcWX54Y; 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 s2si4054280plp.380.2019.02.14.18.40.47; Thu, 14 Feb 2019 18:41:03 -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=NlcWX54Y; 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 S2388281AbfBOCja (ORCPT + 99 others); Thu, 14 Feb 2019 21:39:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:50344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390171AbfBOCKN (ORCPT ); Thu, 14 Feb 2019 21:10:13 -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 4363521B68; Fri, 15 Feb 2019 02:10:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550196613; bh=3V/u7Utnyzge0+vvY0FBq1belRu7qA0GQkD+z+/Od0E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NlcWX54YEYRfL9ZMJHcms7UvpOrHfwRUxjx4Lb67b5Gat/o99hBwRRnA72SWF/+QA SA1qhyneDliW6utPug0UaEYPMwYy36emlLkFAtF1ufsZYE2zf7Ojr8wSK85evtCC+r OQkSSLUBJBOSkPoom+Z1QQSww4FRJW/NkWoKTnbA= 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 4.20 45/77] serial: fsl_lpuart: fix maximum acceptable baud rate with over-sampling Date: Thu, 14 Feb 2019 21:08:23 -0500 Message-Id: <20190215020855.176727-45-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190215020855.176727-1-sashal@kernel.org> References: <20190215020855.176727-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 00c220e4f43c..989b95af1b95 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -1693,7 +1693,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