Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1443996ybp; Fri, 4 Oct 2019 15:06:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzeXgBIeyUnsXmy2PaSBBHJUbOJ+4Q8P77gpBU9i4ZhvNZ9JrNgIuuqd9pQX18CRTqr67Km X-Received: by 2002:a05:6402:1a52:: with SMTP id bf18mr17796982edb.67.1570226803717; Fri, 04 Oct 2019 15:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570226803; cv=none; d=google.com; s=arc-20160816; b=jbr591VvaaaAynfUJ5/KJD/jcNz1+8JGOvPNXSVfpr+qz9ObNVjlxrfvgw+zo22JNB ZS6HPSt348f16OZviyd716ZLM/JPK7Omtuck/AkNaS6iNp86R4WpsC5jKw6b1cIssmS+ +xUI4XGlTO7P6Qp8hUEinfU8SNv/nD/eoCqfyr1PwT66k0IBdu61abg1ZOBFTLnWYrUH rFeon/BmpnTPIBSSx1GhLaYqt8V2xM/XRBbH6z0tHetXn6mFUWRjEDDdymJVvdzr0bA3 K/x9q8q+wfsTHA+oeQKIH/jTJTXGw5mONxJhh86XSyfMxtviUvnZpfIHLRU0mlBrH+vM bEHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=1U1sHNHSit/75tybDvgS4j4jmfFzL9R579gD2Or6c0w=; b=BrFz9A1QJLF6gi2t/MzOZyHHjLr3dXQVbPgnB8tBczbAscSMDOVCLTjxdmtIqHWNHj /LfMk1pvDWteep5holvV3FcZUrMwO5+egFfef28OfyHarRHRcIspJ0ail/+MRnZkMPPd mX63sVbFmZQfLXnD5k9jy3RYtJB5+SeJ47UhWrh9XKOW1k5PB743CJE/SoLYjSwzV2cr guruK8TTbmU6J0rxL1nc7gV7J238/I36HMJWEWo4XtCmj9+D/MYkm6syDV8XIyseXyvq dgWGZjmxha+QpBroW7klNsMhNobAcONuJdPFLLoyBQZIkY2JGH7jYeJgqJ4VlOW7wzCY NMAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nZkZlV4E; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s20si3689370eja.63.2019.10.04.15.06.20; Fri, 04 Oct 2019 15:06:43 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=nZkZlV4E; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731479AbfJDWFn (ORCPT + 99 others); Fri, 4 Oct 2019 18:05:43 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:41259 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbfJDWFn (ORCPT ); Fri, 4 Oct 2019 18:05:43 -0400 Received: by mail-lf1-f68.google.com with SMTP id r2so5472121lfn.8; Fri, 04 Oct 2019 15:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1U1sHNHSit/75tybDvgS4j4jmfFzL9R579gD2Or6c0w=; b=nZkZlV4EeE83+Lga9AsP1nvv9cCzhZxi370TP9tn6hoIDUeKIjgqTvZRH9f0AJVYw8 9vwiK6Jt12wL+rh9z6O/5bFaTtnRiJ/xGhFqZivOatnu6wM2fh4vLao8MRhcHNmAyA+m IZdRfMih4YSzLyID78rnZebTgQTQLsbe0jWwnUFun+Hgd+YyCj+mUNu57QMGK0v0vUbC 8JKKzMRs+m+zQ2eSXqqpqA4x5+6xlcPK+TUMCgnlt8Bt73ha4HTPbNd0CQduq64tLYwI y4tukxBDvPij/O6rfu3BNaz9WEcLkW/0kKDZ+jQZKrzicDMu3gibh/sMqCzB4yC1g7qz jbHA== 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; bh=1U1sHNHSit/75tybDvgS4j4jmfFzL9R579gD2Or6c0w=; b=Y2jkT4bGwXQmiVRLQy4zA2ZCFCPRNZdxfgPvxgYkFxvgb3hzInbBQxS4WaqxPumjDT ln2ntf7U8Sf8uYsHBqfaX3Pb08PIdlV0tlm9pcdwJm8l/eyc2idXV5XZZ5/z7/Mw+kg3 fkHz13dOPI6TcX/vs52QN80kFQH4SxNW2ZKi/W6tCOSY/VQQwcCiJ9gY7OT55mB86bN3 vlDsfl32Y0KQxP4Fy41hDCJxfC0/hNzioAYtdiFhRcuLd53GwTJdINyb4nf/7G8kHdn8 l0LFPRUdZXJ+VSwf/yp4gFaIboAFMeLO0AYsTovp4ag/H3kOV3uDYdh2Jeqyr+hbOXY4 Is3g== X-Gm-Message-State: APjAAAW8z8yk08DAuVgtstEm6mf2d3NWfcjgLg7/Clp2JG3A7fP07jqi TRodzfZVaz9Z0MRnSd9NDF2/SD8aCPn/1Kl7Gsg= X-Received: by 2002:ac2:47e3:: with SMTP id b3mr9669807lfp.80.1570226740863; Fri, 04 Oct 2019 15:05:40 -0700 (PDT) MIME-Version: 1.0 References: <20191004215537.5308-1-andrew.smirnov@gmail.com> In-Reply-To: <20191004215537.5308-1-andrew.smirnov@gmail.com> From: Fabio Estevam Date: Fri, 4 Oct 2019 19:06:03 -0300 Message-ID: Subject: Re: [PATCH] tty: serial: fsl_lpuart: Fix lpuart_flush_buffer() To: Andrey Smirnov Cc: Greg Kroah-Hartman , Stefan Agner , Andrew Lunn , Vivien Didelot , Chris Healy , Cory Tusar , Lucas Stach , Jiri Slaby , NXP Linux Team , linux-serial@vger.kernel.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 4, 2019 at 6:59 PM Andrey Smirnov wrote: > > Fix incorrect read-modify-write sequence in lpuart_flush_buffer() that > was reading from UARTPFIFO and writing to UARTCFIFO instead of > operating solely on the latter. > > Fixes: 9bc19af9dacb ("tty: serial: fsl_lpuart: Flush HW FIFOs in .flush_buffer") > Signed-off-by: Andrey Smirnov Reviewed-by: Fabio Estevam