Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1995512imu; Sun, 16 Dec 2018 14:02:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/XL4pTkO3b1UUfAL9m8mkyoCGWasqPVLox49BC9VeVSB30oDDYP9QdunDLF4/HGq9CrGpQ5 X-Received: by 2002:a65:4784:: with SMTP id e4mr9848150pgs.12.1544997767503; Sun, 16 Dec 2018 14:02:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544997767; cv=none; d=google.com; s=arc-20160816; b=vNhDUkeQ99P5aaIJwkzSEZvvWQkBWmxXsl1u7jvpX/KHK4+TEWxxKrpzsN9NqZxazy y/rKcGPIg/xkIGxsYs1W7UXUT51pw30eaFQi2Q+mq0IyMqxFckn8YtxnIocYMVSda3wn VuS67YlUA2yN2QABrk6EN9j0tdOJBH8vJ59IDS+wRygJ/a14l8OAVmuqPh9cjqE2Knl0 Qyj20XduPUHe9mjHBfWLkZHNi7DhiK348HwIa0oFEwdqA9e/V7X0kyWH3VgSN0EoXEd1 3F+WbtVWvMA/Sf5NZed1JZNFjM3a5IKSdHDBu8yNIu5/QSwe+kN/NpViaaaMydt9aqaT u/kg== 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=Y6cKQHWPJUrKzvn/WQoTkIis/KmHgLzFMYMRt3sQw7I=; b=PFK2z6Jutql4HCSQork1jlpte/9VX4hAjAe0093ZqkGfSnynTFyRTcSFqbNXtcN2O2 ugnpVUrFigfCppAd0UdT2lWYWnaXCoYpZ5wGSbtgZSkNBZybVIFpCBP6wEAR97dKryJs l/ImiGoUQusGkWw4Av3Rkhfg9puKPvG/SA7RXyfWJMrajeqXrWuq5d0xfvuT/2GS2lmO HV+jMS3lIO3jKZmiU8Z/AOl7pzZkEjcYN560hOz7GbjFaQEjVI2VPcraM8335yN4frfv OcSYYTE+6vAKqW65RxCOjj2tXzLHoAcq3IZTbYayAB2hs3E6KfT02Z/ClyXukjl2D4Nr g+qw== 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 o124si9632453pfb.256.2018.12.16.14.02.32; Sun, 16 Dec 2018 14:02:47 -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 S1731020AbeLPWB1 (ORCPT + 99 others); Sun, 16 Dec 2018 17:01:27 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:38436 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730860AbeLPWB1 (ORCPT ); Sun, 16 Dec 2018 17:01:27 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 43Hysw06Nhz1r0Gm; Sun, 16 Dec 2018 23:01:24 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 43Hysv6bn9z1qsZC; Sun, 16 Dec 2018 23:01:23 +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 CFL1_clki3N4; Sun, 16 Dec 2018 23:01:22 +0100 (CET) X-Auth-Info: 7/tF+Q5YzpxPXbvQsValM1HSKK9qBtjYYVo4W7puvpw= 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:01:22 +0100 (CET) Subject: Re: [PATCH] Revert "serial: 8250: Fix clearing FIFOs in RS485 mode again" To: Paul Burton Cc: "linux-serial@vger.kernel.org" , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , Paul Burton , Daniel Jedrychowski , "linux-mips@vger.kernel.org" , stable References: <20181213174834.kxdy6fphaeoivqgh@pburton-laptop> <20181216200833.27928-1-paul.burton@mips.com> <93a3c76b-f4ba-57ae-9d80-6e945b4f3181@denx.de> <20181216213901.hpll7wqzhqvfgkfy@pburton-laptop> From: Marek Vasut Message-ID: <28a1d4ae-493d-8bbc-46f7-ad41ca04d782@denx.de> Date: Sun, 16 Dec 2018 23:01:18 +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: <20181216213901.hpll7wqzhqvfgkfy@pburton-laptop> 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:39 PM, Paul Burton wrote: > Hi Marek, Hi, > On Sun, Dec 16, 2018 at 10:08:48PM +0100, Marek Vasut wrote: >>> I did suggest an alternative approach which would rename >>> serial8250_clear_fifos() and split it into 2 variants - one that >>> disables FIFOs & one that does not, then use the latter in >>> __do_stop_tx_rs485(): >>> >>> https://lore.kernel.org/lkml/20181213014805.77u5dzydo23cm6fq@pburton-laptop/ >>> >>> However I have no access to the OMAP3 hardware that Marek's patch was >>> attempting to fix & have heard nothing back with regards to him testing >>> that approach, so here's a simple revert that fixes the Ingenic JZ4780. >>> >>> I've marked for stable back to v4.10 presuming that this is how far the >>> broken patch may be backported, given that this is where commit >>> 2bed8a8e7072 ("Clearing FIFOs in RS485 emulation mode causes subsequent >>> transmits to break") that it tried to fix was introduced. >> >> OK, I tested this on AM335x / OMAP3 and the system is again broken, so >> that's a NAK. > > To be clear - what did you test? This revert or the patch linked to > above? > > This revert would of course reintroduce your RS485 issue because it just > undoes your change. The revert. Which of the two patches do you need me to test. > Either way, commit f6aa5beb45be ("serial: 8250: Fix clearing FIFOs in > RS485 mode again") breaks systems that worked before it so at this late > stage in the 4.20 cycle a revert would make sense to me. If that breaks > RS85 on OMAP3 then my question would be how much can anyone really care > if nobody noticed since v4.10? And why should that lead to you breaking > the JZ4780 which has been discovered before a stable kernel release > includes the breakage? There's always a .y release where this can be properly investigated and solved, instead of breaking one platform or the other. Then again, see the patch from Ezequiel that was just posted, I think it might be a far better solution. -- Best regards, Marek Vasut