Received: by 10.192.165.148 with SMTP id m20csp424058imm; Fri, 20 Apr 2018 01:24:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/gTT7mv7ZAdS7wC16BO7e31+xS90zt6Ja/p9sWfS+XZpA4oG+1w+2As+yftZKCHshG6Tem X-Received: by 2002:a17:902:67c2:: with SMTP id g2-v6mr9325894pln.93.1524212652754; Fri, 20 Apr 2018 01:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524212652; cv=none; d=google.com; s=arc-20160816; b=yRbNIBhxaGeR/o+u4ITQ/oHDa+o6Ldzt6QVBJ4AQiYRoFcNJR+g72phJEDQIoYZEKz X/sUIQ3yjmScszQXugfeeQfCxlFYNSMyCTZGJydc4AH5njJtYQ9DgTEULnetWJW4SN9J B28Q8uV69vXH8280gIOnN49Fa0vA1UoAWTG6uHKSpARYVOslVhy5S+W+GOVNaU2aPimg QidljJpetVwhrwUS/PjtoQMnNmT8WpmomlcrooZsdynN6wbZM1XhQE6fjc1Q0JwhesPi abP5OyK76QnbvRHNaIPCrSvZqQdayIpvOkEr3TpbXY38/kE+buzWIc94Z+9KVNP/Ww5e VOIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=cwtq4XfinItztfDmWdT2ki3Ezn/K6ayBzvf1jwlL5Fc=; b=0D8pAylK183jYFhUfJ2Hpu3+VbV3w0+anSroROYBQ6EmObBmFpP3MBWzyvlEV89CSg QueAtPBNpSSeaFYjyEmIZvxFjarVgiPQsANCJFpLRnM2DvnrBiEha/Nan22tjKgpmrzW 97EhT0fJciTNFaJPD99YhLwWYpBLQoYsRW34xbRFEzHw5wmo0dBKaxr5leu5TUTnpexs 1AIso7Uv9Wrxxi/MhbwaR9rPQiwgPAX4wy9d/LsZVF3GMINr5D8Sp+M43oiAkbE9ddCY Fw/GRouT5yLCJr6dGcJSwS+T+8aXNEgW7zGzMBfPgimVBkgChyIprbQ+iYLr8q2dcFOX Hx0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=zsQIAnAi; 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 c1-v6si5027104plz.237.2018.04.20.01.23.58; Fri, 20 Apr 2018 01:24:12 -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=@agner.ch header.s=dkim header.b=zsQIAnAi; 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 S1754089AbeDTIWp (ORCPT + 99 others); Fri, 20 Apr 2018 04:22:45 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:58280 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753905AbeDTIWn (ORCPT ); Fri, 20 Apr 2018 04:22:43 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id F2C975C0E5F; Fri, 20 Apr 2018 10:22:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1524212562; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cwtq4XfinItztfDmWdT2ki3Ezn/K6ayBzvf1jwlL5Fc=; b=zsQIAnAieX+lvw3ljneFZMyywBkD0FprDGXxiX0/UJjKvgtqXkvwekUNOPVt+IYZG9+NR4 rTxCU08d+rl+8dSuvKxl8u2oMCMjH4yIhs3WaYDbCQ8bJtEB2Q/SmvYAkVBZyPSEbkMUep I0u8sRSmDVxdpKFevT+KfeFZ1KD8eoQ= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: Fri, 20 Apr 2018 10:22:41 +0200 From: Stefan Agner To: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= Cc: gregkh@linuxfoundation.org, jslaby@suse.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] serial: imx: fix cached UCR2 read on software reset In-Reply-To: <20180420060315.ob6eygfcibwq7f24@pengutronix.de> References: <20180416153502.11814-1-stefan@agner.ch> <581f0f26d7191aa3355a6c63b531f876@agner.ch> <20180420060315.ob6eygfcibwq7f24@pengutronix.de> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.4 X-Spamd-Result: default: False [-0.10 / 15.00]; RCVD_TLS_ALL(0.00)[]; ASN(0.00)[asn:29691, ipnet:2a02:418::/29, country:CH]; RCVD_COUNT_ZERO(0.00)[0]; RCPT_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_SOME(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20.04.2018 08:03, Uwe Kleine-König wrote: > Hello Stefan, > > On Thu, Apr 19, 2018 at 11:37:23PM +0200, Stefan Agner wrote: >> On 16.04.2018 17:35, Stefan Agner wrote: >> > To reset the UART the SRST needs be cleared (low active). According >> > to the documentation the bit will remain active for 4 module clocks >> > until it is cleared (set to 1). >> > >> > Hence the real register need to be read in case the cached register >> > indcates that the SRST bit is zero. >> > >> > This bug lead to wrong baudrate because the baud rate register got >> > restored before reset completed in imx_flush_buffer. >> >> Given that you reviewed my other patch rather quickly, you might have >> overlooked this one? > > no I didn't, still the ping was justified. I didn't look into it at once > because I didn't feel like opening the refman. > >> Since it is a regression, this should go into v4.17 still... > > That's right, > > Reviewed-by: Uwe Kleine-König > > I wonder what is different on your side that made it break. I didn't see > any breakage and tested that on a handful of different machines. I observed it on a i.MX 6DualLite, UART in DTE mode... It did work on a i.MX 7Dual just fine for me too. Probably bus clock etc. dependent... -- Stefan > > Best regards > Uwe