Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2011609imu; Sun, 16 Dec 2018 14:30:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/V2g3ef+o91+XENcDbd9wQg1xaMeW5mIDL5H6sE3vekEXzeyPjr9q4UKT3gYokALzddToLT X-Received: by 2002:a62:7c47:: with SMTP id x68mr10824765pfc.209.1544999422031; Sun, 16 Dec 2018 14:30:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544999422; cv=none; d=google.com; s=arc-20160816; b=vkWAh5NGhQ/5qpJ5syiLpFDmnRakpxoz2aO3egmA40O8akQfNrPG9rMqpmZvCKm3m5 x6MExegbjF2OHOiuRT5jUifTJ2M+/Qem1RYNg0+RukDCAXmRHYAj2oG3AcCxuj0a/7Or vukqb3W6BcEv7QLiYnP1owl2JYJN1VvCGDxQYxS5Rbt0JGLVIJbaIKynVite/CZ6nuSW unkOqu4litLrcRgQUzDP5ES5BPQvWLCzX6I17fX3kRUYT3z+32365UqbfYRn8BR1w5EO U5k0rwY5qvNqVlW81UsqZHcZSczet+eb8Z6bH3fADGOaWLAFxjxcwdBhJaNMIzQ/CYJJ TyBw== 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=dl2AuByQJpjLrjeXXkAhsFe1RZ8E2MixfRbKPwOveOg=; b=yjHLBDLALA1brKu2czRWG14lAwyQNGrn3keHUbRsxdR498d/vifcv148drf2E+NH3R oQ+xgDFzp1oN1KjinFV8DtQQItMWZf4blez7hKjJwECdUju4/bU4VFBXQySICel1PiFj 2P4rmmlCXIWzC19564mqDUTmCNRjjkcyR5DxeefafpoN1wxgPnEnUDUONeRte1tWLewJ T/qIpwEyqkZUuGjX0uNxgAZp9c8OaZAD0tIb99HcJ06xF+ULHodD4gZ40SvGxC+aN1Cs 3b8j/h5/QU5nx1NZIhrXijGE7MTei2sI3OJtZ5EtBKdRhi8u9nbu/8ULkvpgyMxhz88/ EtRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=bKs2lZFn; 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 c201si3380079pfb.211.2018.12.16.14.30.06; Sun, 16 Dec 2018 14:30:21 -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=bKs2lZFn; 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 S1731028AbeLPW2e (ORCPT + 99 others); Sun, 16 Dec 2018 17:28:34 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:38477 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730977AbeLPW2e (ORCPT ); Sun, 16 Dec 2018 17:28:34 -0500 Received: by mail-pl1-f195.google.com with SMTP id e5so5180974plb.5 for ; Sun, 16 Dec 2018 14:28:34 -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=dl2AuByQJpjLrjeXXkAhsFe1RZ8E2MixfRbKPwOveOg=; b=bKs2lZFnC9ySsEDlG5hPSOxX1erTQjt183voI9UH5ghoBHO2nLz7jzqGkLZbLrzFps BPQ5FSUvinhdjqVEBfMQ2BwRgogYGCofXYObsRW8f7vmBfoSvZMvhsq8Nrtc37htvSDv fICCaB1gun6zqFnG7wkeWfLIUWcnHUoEm9vZKNrKjKybVL0h5nttVefzd+45myz5qTKi F1Nulm+1YkrgzSeOV4DjKrTp+yD5/N5koN927HRSxIsruvgUO6O7MRpfUKnuXNkMnG/r SUvBXOIhEHoaXmF3I5PFislXqTFn0B9MbtsPvMVMabxA2Zqaqi4pQ6A8DsFBlt0uIASu Y/MA== 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=dl2AuByQJpjLrjeXXkAhsFe1RZ8E2MixfRbKPwOveOg=; b=U43uCHpfwT/aJu9W1b5gjNDB2qCcwpszFIb0vkHpDum+kgzpkSnakFqk52S5iw5BLt /RlzR02oRWGfL00//W7Vd8+xw1rxC3yAIH2yYo5zxOAgftZ3iRpqTOdSbiKiWBQ0xHfQ mMLmSCOOu9X0gUWcAXMRtc1ekKBw/RJ3ot3b6o1y3vuIyLamiHFN+baz5YCREcgJditY NllUVtvBAY9voH70FpARG2bw2xdulDqgWWKM/ZXEOijA539H8omB72xdCyBXW1MOkTV4 zi6dmIRxQVkTnbWH1xLiWiZ2TITHsSqz/4HC/wsNvvW3Fa6r5c+WxOUyUtGamzozsut7 SLmg== X-Gm-Message-State: AA+aEWaAo52hFOQBgo47YbZhsUpuA7rZ/kaj79yHfM6eKpk8HJF23xS5 xCFT/d8FxrwuHQp+dwSemJOtBEnV1yZKxYji8MwC1TipT4E= X-Received: by 2002:a17:902:d68c:: with SMTP id v12mr10445280ply.4.1544999313671; Sun, 16 Dec 2018 14:28:33 -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> <20181216222411.5jkexuaqxpfudj7b@pburton-laptop> In-Reply-To: <20181216222411.5jkexuaqxpfudj7b@pburton-laptop> From: Ezequiel Garcia Date: Sun, 16 Dec 2018 19:28:22 -0300 Message-ID: Subject: Re: [PATCH] Revert "serial: 8250: Fix clearing FIFOs in RS485 mode again" To: Paul Burton Cc: Marek Vasut , "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 19:24, Paul Burton wrote: > > Hi Ezequiel, > > On Sun, Dec 16, 2018 at 06:52:53PM -0300, Ezequiel Garcia wrote: > > 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 *por= t) > > /* > > * 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); > > > > This helps, but it only addresses one part of one of the 4 reasons I > listed as motivation for my revert. For example serial8250_do_shutdown() > also clearly intends to disable the FIFOs. > OK. So, let's fix that :-) By all means, it would be really nice to push forward and fix the garbage issue on JZ4780, as well as the transmission issue on AM335x. AM335x is a wildly popular platform, and it's not funny to break it. So, let's please stop discussing which board we'll break and just fix both. --=20 Ezequiel Garc=C3=ADa, VanguardiaSur www.vanguardiasur.com.ar