Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2008957imu; Sun, 16 Dec 2018 14:25:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/VPTC7nW8jcjrPoCsKKPhn9xFOZagDkMkQEwWDf0uq50NI/aVZphIxD2Zi1P+plh7kQcb7p X-Received: by 2002:a17:902:59c8:: with SMTP id d8mr10615665plj.116.1544999112874; Sun, 16 Dec 2018 14:25:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544999112; cv=none; d=google.com; s=arc-20160816; b=Ia2GsuMbDcx3/O0Cn4vM93PpCTjxlTbvsLO3nlh+S8IZsYs8sXtnbFA7vyBoNl5AVi 3h1wdbfmJPNyGmxAztUuGnLf3gmbTA+Oy1MUVEDJfEkWCagH0VqNyLttu6CFLA6E5ty8 3enOqH6kMot1cRDWL/Pnx8yVn3ctLud2KRbpzpOC7Rrm1vTpJgvgmeZYBSvD54suAm9D Teceb21k59FoovEmCC71XpRlLM18K0nzDsrdSfvc27WWITIZwSMQG4hcQZGLeHEqaMY8 7YEFb2MtCOoNs7bhMUWxtMiam9aEsEbSSXO6hl6LaFXyKnptNCAsLnp5HVOU65hqqcUP 0zng== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=DdSWhei7D9g4xAzSb71lE5X9Mh1rI2OXF8xCp8NAj3U=; b=I1e3TSyRHiGJSCB8MjDdwlrHWwzR5Pqogq5qrLL6on4Hv6p1BRLpEml40+3ExenKkG J7J7RR2b3G048nFjle4TkIvN+vOyFX1pRg8b3FPqUexgKearJ8JPeAXeVFIqWEM5O9w4 axYL9e3dx0muu1WPATpCFno6Qg/oL09xG5WG8A0nWQwTkerjDrEoWJJF9jcavuNXxoQD jbhyElVpF4g+V10/amhpOBsqkTHTY78snz5My48Juq9qkCdw6iWbjCrb56pDImcTZI2n 4EV2FK0pBr1O3QMZDQ+MRpwzRtka0d+0p5lNkMPFvEFbofeIHDsRx0ur1vHSgrBy1VFy Mgvw== ARC-Authentication-Results: i=1; mx.google.com; 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 a10si9184589pgq.270.2018.12.16.14.24.55; Sun, 16 Dec 2018 14:25:12 -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; 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 S1731028AbeLPWMq (ORCPT + 99 others); Sun, 16 Dec 2018 17:12:46 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:56752 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730758AbeLPWMq (ORCPT ); Sun, 16 Dec 2018 17:12:46 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 43Hz6z1WgLz1qxPv; Sun, 16 Dec 2018 23:12:42 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 43Hz6y5wPDz1qqkw; Sun, 16 Dec 2018 23:12:42 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id NtzQMBRQDqFe; Sun, 16 Dec 2018 23:12:41 +0100 (CET) X-Auth-Info: SuV4hhHjKXsIQAhuxtjZrRLxUwhb+gg08wM5UmNwOE4= Received: from [IPv6:::1] (unknown [195.140.253.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 16 Dec 2018 23:12:41 +0100 (CET) Subject: Re: [PATCH] Revert "serial: 8250: Fix clearing FIFOs in RS485 mode again" To: Ezequiel Garcia Cc: Paul Burton , "linux-serial@vger.kernel.org" , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , Paul Burton , Daniel Jedrychowski , "linux-mips@vger.kernel.org" , stable , Ezequiel Garcia References: <20181213174834.kxdy6fphaeoivqgh@pburton-laptop> <20181216200833.27928-1-paul.burton@mips.com> <20181216213133.kwe24pif3v4wcgwp@pburton-laptop> <949fdd3d-535e-d235-f406-d5bde4658c5e@denx.de> From: Marek Vasut Message-ID: Date: Sun, 16 Dec 2018 23:11:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/16/2018 10:52 PM, Ezequiel Garcia wrote: > On Sun, 16 Dec 2018 at 18:45, Marek Vasut wrote: > [skips discussion] >> >>> Ultimately it's Greg's decision but it sounds like you're asking me to >>> say it's OK to break the JZ4780 in a stable kernel with a patch that I >>> think would be risky anyway, and I won't do that. >> >> I am saying this revert breaks AM335x, so this is a stalemate. I had a >> discussion with Ezequiel (on CC) and he seems to have a different >> smaller patch coming for this problem. >> > > Can you guys test this? Note that serial8250_do_startup has a comment > stating clearly that it has the intention of disabling the FIFOs, > so it seems this is the right thing to do. > > Paul, this removes the garbage on my CI20 (rev.1) > > diff --git a/drivers/tty/serial/8250/8250_port.c > b/drivers/tty/serial/8250/8250_port.c > index c39482b96111..fac19cbc51d1 100644 > --- a/drivers/tty/serial/8250/8250_port.c > +++ b/drivers/tty/serial/8250/8250_port.c > @@ -2209,10 +2209,11 @@ int serial8250_do_startup(struct uart_port *port) > /* > * Clear the FIFO buffers and disable them. > * (they will be reenabled in set_termios()) > */ > serial8250_clear_fifos(up); > + serial_out(up, UART_FCR, 0); > > /* > * Clear the interrupt registers. > */ > serial_port_in(port, UART_LSR); > > On AM335x pocketbeagle Tested-by: Marek Vasut -- Best regards, Marek Vasut