Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1947657ybv; Fri, 14 Feb 2020 08:42:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxa5XyugO5S2KkMPf2YM2pYbHJf1YpAQBldPG/HvSXjzTCaQPCA+DYB6RZCJgOGnl5ZI6Nb X-Received: by 2002:a05:6830:1607:: with SMTP id g7mr2996744otr.320.1581698526242; Fri, 14 Feb 2020 08:42:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698526; cv=none; d=google.com; s=arc-20160816; b=vJxMp5bpEkF7bkc8w1XSr8BdhAOgy7EJ06hOxKbaBc+qbOMpj+OxUNni3nTaSY+iw0 d1TBWs7E8Yd7BTXM+gBouYXocXkW3xtS0JhIhoGHi+nrFbldJslb2/mtpaDVqmktz/d0 de3WpZYPh9cg+fJWDdyn9/xiPAl/t/S4amACwlgj98omjNgZg5u6QsWp+iI0pRsnuP5O Q7PiRvEWJIBrUc8TVP27u+SKgwC2Nff95e2usz8cSyZmGopeGSTfxy3NS+562MdQDk/w Gm+Zr3fxNokF4QpirBC+YqJtbAmJoy3xTfCw+OwFUb9w4jsi+rOZXnZe9OoFLW3w2A5L ciiw== 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=NXl/8zZlUpQz6Kw6KjgwuL/NsxXTdW9tYiLgmXHHEE4=; b=Ow0LtlDUtXr9GbjwIxBxcxwCodtZWyXWIxMj2vnoM/2fiG2QQBOHPfaG5Jsej99CCS PU/2SXQ9epGTtCvJUYQCsAiCrNSP2KBWDLkBhntoJP4DpEK9jyC1GM7wkRbiUTxGQNpI vk1qZsOh4UuMvjL4jd+RH3qEHVeZ7OkwYB94xsYz+UtVlu3Yu2xLq6kB1Jyea5bzLrI1 BBhFDlkkTw+8uc2GkLxAn0Wk5yJynhXCLWjcGdnZvWgcMhiXUaqZet6R8d4GBoyvo/3q xS/Q+62r04G/CHsIzILOUtq6/0ByOoAFcvaaSi0HiGXVq6QGwkhF9of9P0Df++c03V5S VFDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LYQq+k9x; 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 l6si3152617otk.134.2020.02.14.08.41.53; Fri, 14 Feb 2020 08:42:06 -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=LYQq+k9x; 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 S2393949AbgBNQlT (ORCPT + 99 others); Fri, 14 Feb 2020 11:41:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:58406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405101AbgBNQWj (ORCPT ); Fri, 14 Feb 2020 11:22:39 -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 07BA3246B0; Fri, 14 Feb 2020 16:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697358; bh=nBg3B4SGh9ImBA80puCaQjptdsSOnQ4qH+lPv9TJtHk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LYQq+k9xUifjacSiM+WgG+99MoW7jhPeHwot5cGoNXawGyCXQwaUWeM3T2AHtu8Qg RE5BjTHVwPGWVWR/cxV5ZI1gKdh6pS1XPRNvSq9R9ixz2R15ghbJThVzlAMkWypZO3 snyvI58iQxgVeNX1JqJmqtjM8EP1AQtsztKcINWc= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Stephen Rothwell , David Engraf , Sasha Levin , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.9 060/141] Revert "tty/serial: atmel: fix out of range clock divider handling" Date: Fri, 14 Feb 2020 11:20:00 -0500 Message-Id: <20200214162122.19794-60-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review 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: Greg Kroah-Hartman [ Upstream commit 6dbd54e4154dfe386b3333687de15be239576617 ] This reverts commit 751d0017334db9c4d68a8909c59f662a6ecbcec6. The wrong commit got added to the tty-next tree, the correct one is in the tty-linus branch. Reported-by: Stephen Rothwell Cc: David Engraf Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/atmel_serial.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index 325f9db2da86c..255be61b4073a 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b/drivers/tty/serial/atmel_serial.c @@ -2200,6 +2200,9 @@ static void atmel_set_termios(struct uart_port *port, struct ktermios *termios, mode |= ATMEL_US_USMODE_NORMAL; } + /* set the mode, clock divisor, parity, stop bits and data size */ + atmel_uart_writel(port, ATMEL_US_MR, mode); + /* * Set the baud rate: * Fractional baudrate allows to setup output frequency more -- 2.20.1