Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp674609img; Fri, 22 Mar 2019 06:21:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqx20dEcDGWYNrfweN7hExuGxwQIruTEvCWfivVKTiuyhcVwqHoojIIdDH6CzP9fn3vDAgfl X-Received: by 2002:a62:445a:: with SMTP id r87mr9015884pfa.13.1553260895414; Fri, 22 Mar 2019 06:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553260895; cv=none; d=google.com; s=arc-20160816; b=oezL5ly1J303rED4CmepJJff57MeoQF3I8ySC47ECuMdX7Q1GD5sirEqfXBE4sbSuf LOlqhdhiJDhHT+Tdcf4FdKFu6JXiJj/AihfrsMZwI8ljdON69qkPyTgUXvCJvbxSF/A6 vNxsY0fjrF1v5abTWJp9hruE+FP6mrHLBiaQmCBZGC9eJgjXR5CsYU1zWoMXAI6sxTCI VGVE0xFVR3qq5bk3mRW26ZIKQAwF81M0lUWI9yFP1M5QouWUpMkBsptUTgHX8u7NG4ji fBf1T8eEEtdPKnMP0Or3l9UN4pBNKhUfmuQZFrStqoLE0Sb3SfNi78CUpefW2duipUS/ 25Qg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4tvXDAPCV+7n6wZLGDuzLiCcT+CzaaVyD7pIkVWrloM=; b=ZJhrMIqA16Gl9rHS+rdNgL4cFYhWp7hzpQxzVK7JjCh6x8bHWQbpbuPeE9yKknmsL3 cFwIfTuObSdpD8cs42lLdATbs7ToeLNnSXt1nJwtOAyZ27uTQvozqhKMFRvGrDFkETNx uhFgHN6VUtGLuV8aeWe8AR32j/vqLR2hCBv4Ln0eXiWrw4wQ2YPs4Rc5lFz9Gp2tA8Rb DOCwSrn7NK0uNne/GT6IK1ffAqmkJZtyQNT8axF2bWAuE+BeOKpFoalL4hOQlDhXZBVP JgFNGIhq3cql/KdIyGCGZwhF5FrHLi258KBVjS6Mn1489zmzcevnwTEWvafZ8iQyqE6J /PEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2u01SiTn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c136si6465575pfb.89.2019.03.22.06.21.20; Fri, 22 Mar 2019 06:21:35 -0700 (PDT) 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=2u01SiTn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728529AbfCVLVI (ORCPT + 99 others); Fri, 22 Mar 2019 07:21:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:47542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728504AbfCVLVE (ORCPT ); Fri, 22 Mar 2019 07:21:04 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D42B021917; Fri, 22 Mar 2019 11:21:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553253664; bh=tECfx1IbZmSmm8w7LzucapR9s7TDRYw62zVqv7bQkPM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2u01SiTnes5nZKTDUwkrQrsOHTNPIDVRJX5n6Mj0ZqKxFYKt71qOOf40ZJh/7Aldj Q4ALKw8W1mU8oFrljO1ZmyYuhK1wD0TCvvlUvreIY1s8fS8Wqem0tskStiTZv+pPuS oMdQHgMt14zWwMTjVGHkfkrifc1BeMUWghn/TSdg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tomonori Sakita , Atsushi Nemoto , Sasha Levin Subject: [PATCH 3.18 034/134] serial: fsl_lpuart: fix maximum acceptable baud rate with over-sampling Date: Fri, 22 Mar 2019 12:14:07 +0100 Message-Id: <20190322111212.201258363@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111210.465931067@linuxfoundation.org> References: <20190322111210.465931067@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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 839e65da4d3f7..f18551ea5ba51 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -1426,7 +1426,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