From patchwork Tue Oct 27 13:50:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 289633 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C45B0C5517A for ; Tue, 27 Oct 2020 15:47:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 737F423A32 for ; Tue, 27 Oct 2020 15:47:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603813637; bh=LOjcuGBJclT3lPR7rvlNiuRhVS2aSFtEgRiiyrMjcIw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=clsdouK3NmixUQSWoAJO3ITqm4mLknAVViRnB1ZtQI6Tf9ejs3Cv8RXPBnRuQyL+M wxAcWMz8lFSYFulhL0Bn9XchK7Rw8NcQTNcKq67g2PywwHaAvyrjP1iVhDdofnxGgY kg3nvz//R+/KR6l25LsDYYi4WlVRBWmHmc9Zr3h4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1801865AbgJ0Pos (ORCPT ); Tue, 27 Oct 2020 11:44:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:52076 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1799925AbgJ0PeJ (ORCPT ); Tue, 27 Oct 2020 11:34:09 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 3F43F22264; Tue, 27 Oct 2020 15:34:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603812848; bh=LOjcuGBJclT3lPR7rvlNiuRhVS2aSFtEgRiiyrMjcIw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hPyVoA2tA+sid14em+U+XRdU5ShCeOB9nP8nSJ+NrWdMtT2khiHsf6lYpQ/0ybEmx bZRBQ48Wrsj3s3L5o0aVdXejGLvHOA5huWZs/l5V3PsydvyaE736hA9HBG9QjKq1UB dS/DxE9ptxKaGcEQv6YIsY9uNln1sUOByNvkr3ss= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Serge Semin , Sasha Levin Subject: [PATCH 5.9 352/757] serial: 8250: Discard RTS/DTS setting from clock update method Date: Tue, 27 Oct 2020 14:50:02 +0100 Message-Id: <20201027135507.084233919@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135450.497324313@linuxfoundation.org> References: <20201027135450.497324313@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Serge Semin [ Upstream commit 7718453e36960dadb8dc46f2b514b309659e1270 ] It has been a mistake to add the MCR register RTS/DTS fields setting in the generic method of the UART reference clock update. There is no point in asserting these lines at that procedure. Just discard the serial8250_out_MCR() mathod invocation from there then. Fixes: 868f3ee6e452 ("serial: 8250: Add 8250 port clock update method") Tested-by: Hans de Goede Signed-off-by: Serge Semin Link: https://lore.kernel.org/r/20200923161950.6237-2-Sergey.Semin@baikalelectronics.ru Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/tty/serial/8250/8250_port.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index c71d647eb87a0..1259fb6b66b38 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -2665,7 +2665,6 @@ void serial8250_update_uartclk(struct uart_port *port, unsigned int uartclk) serial8250_set_divisor(port, baud, quot, frac); serial_port_out(port, UART_LCR, up->lcr); - serial8250_out_MCR(up, UART_MCR_DTR | UART_MCR_RTS); spin_unlock_irqrestore(&port->lock, flags); serial8250_rpm_put(up);