Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1990815imu; Sun, 16 Dec 2018 13:54:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/WpvAnqDDNS+PLToHQB/o+0V/hiMy7pqlYbXx5HzyhLWQB/tgsirrDk8GJNAOVobKLHZEFj X-Received: by 2002:a63:8441:: with SMTP id k62mr10034266pgd.392.1544997259393; Sun, 16 Dec 2018 13:54:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544997259; cv=none; d=google.com; s=arc-20160816; b=RGgEsS/AfW3f5HY9Bj8NwVXPNyWVk6I3GY9gk2JCw69qwR++cXeJTBCRxUcuKAv9d7 pXidK86MVaJJqOBSblcEuwXVDeHlodpkkVcjq4k/CpYdB/fCp3M23/gbJ4Bwt8K88G6J 0vSeEJ1FeRFadnUaCL4Nf/3XYDlBA8mYDaJ7PCLV6Xs0PcInfVEdD1F4dGnJykchhYaY 4WXdLzzP4IzIG0317vbY6Ke6GBRvgCu8KxTKQs6X7ZFabIkTDuRpkWgTCp/vhFHy6Xz+ K/rsTftfUEbNM49Q/ULwqjmz3uaAXhei7kXRB7GQbExRbVa8RM4UskaTvI4JTelCaChB 8woQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ZoHKhsnFGN3CIqkdEEKeYxt2PoWsCz+gYbY0r5efL9s=; b=DvaHAAexDoPjx+xSWsI/7rGfqCB8yBDed06WRsK85gU4DyPBqlNwAHH3/sCT53skXF jKaGOrdbJXKDA7EaYBYCkqS5fuZLaZgf+8pTWa0OOPZHRXxaJVcS0X7pXDOIQtYIZM81 ONzHnUtvNr7/+Qo9Mzdn/BpTFD/RsO5o/3rKGEyJtXL2xQIVaF9Ir/ktbJnKxGiGbLuC twv6H7//OAVVty1g+H07PK07KVTSXfkAL00rWqTMN4RdmqwwRyS2EhbVgRaQUOp7YVw6 TZ/ShDnT8w+PdCKKVZijYzAh+jTTtcTdeesphQnDzbLLcZdqqirHWhUg39SILlDeLZWr JiKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=Xa9LZZ9Q; 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 11si9212019pgy.408.2018.12.16.13.54.00; Sun, 16 Dec 2018 13:54:19 -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=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=Xa9LZZ9Q; 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 S1730993AbeLPVxF (ORCPT + 99 others); Sun, 16 Dec 2018 16:53:05 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44857 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730945AbeLPVxF (ORCPT ); Sun, 16 Dec 2018 16:53:05 -0500 Received: by mail-pf1-f196.google.com with SMTP id u6so5333323pfh.11 for ; Sun, 16 Dec 2018 13:53:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ZoHKhsnFGN3CIqkdEEKeYxt2PoWsCz+gYbY0r5efL9s=; b=Xa9LZZ9QV8bw/khoLhw/D4d00eV5tFXrgyPZ/dt8DmcfCd2X9h9xLvhwwf/FxGGqrl W+hIj772Z2+icSUjvlU3LvR0sopt4IEpM/gsm4pvkzZGc9vQTNCza9mJoZwIxbPBf07v tNUMXZvVsPFGUbI8RRZJNClYkpTGxbQIf6lIEqnoX2fUBIKsZasb5eQunrl485mYMXt/ 6Tg9WFO3Sghjb0wyns06jDTRdRdQaBGo78yUIfuybUjWJr44+jHdgzw01po+J3CxgEBe dCXBt4OxcD+V3jcb8zhdsOMz7/f1KlaHmqFJnKl7f8fC2wHRSq+/WfmpDmwWzamj2GUV L3/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ZoHKhsnFGN3CIqkdEEKeYxt2PoWsCz+gYbY0r5efL9s=; b=I/JQyMPGr1jzBH9urqwcvfSFRzYP8/4mhxH5TGPiQ5raOz1yeZr4sBa9mkJxYZrFVb ff9iF31Mh1HyUScfTdtaii5HBclA93LK4T0XCNxSTTICSqUTarFa2H9brBeQK/xNCDSA Cq5sf61Qs9zNA1KsYhUqsOkdyDjQAsp2F6lYpuwL/BbaLsWSdxEU5Z9eRu+G0toDDRao vzAtgVwMF9TaJBDFzOiyU8m7L+lzWk+zpxL5e7UVeoyU/gtZsXwN6eExqIJHESERMu0p 54lw/UPGUqJrukO4C4oaVjD+RtfOTJLnl9Q5Jzd3ro15ulY+ojKIxRkmsNDRDz0eMveY 5ueg== X-Gm-Message-State: AA+aEWbPnX53hyp5by+IE6nR51RhSuxyUMXXLdDLigSz1F2AwszHiQr2 HkbES0Wg1Upt434U6PLUZGgEIlz5eHi4T4LFfTfvDA== X-Received: by 2002:a63:6cc8:: with SMTP id h191mr9644219pgc.366.1544997184661; Sun, 16 Dec 2018 13:53:04 -0800 (PST) MIME-Version: 1.0 References: <20181213174834.kxdy6fphaeoivqgh@pburton-laptop> <20181216200833.27928-1-paul.burton@mips.com> <20181216213133.kwe24pif3v4wcgwp@pburton-laptop> <949fdd3d-535e-d235-f406-d5bde4658c5e@denx.de> In-Reply-To: <949fdd3d-535e-d235-f406-d5bde4658c5e@denx.de> From: Ezequiel Garcia Date: Sun, 16 Dec 2018 18:52:53 -0300 Message-ID: Subject: Re: [PATCH] Revert "serial: 8250: Fix clearing FIFOs in RS485 mode again" To: Marek Vasut 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); --=20 Ezequiel Garc=C3=ADa, VanguardiaSur www.vanguardiasur.com.ar