Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp990978ybp; Thu, 17 Oct 2019 06:33:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzy9dHbQvTsPpHkfScoUE8Qgl4Htorhlz5J674zltxFPoBCnn/NLTeTGPr6q09JOGgNAHXM X-Received: by 2002:aa7:c24d:: with SMTP id y13mr3834632edo.186.1571319222273; Thu, 17 Oct 2019 06:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571319222; cv=none; d=google.com; s=arc-20160816; b=0Hhj6djriLfJMatTbrEc+4hB1DVev/WGOyFUPe24LHAfN5zHIL+Kl9GXIsF1kvEApO oI6LrNycBR4oyxlYQSxPvbA6YL5IMtXytXatQ9DDyPjOO/yZZrBJoSwzVZ2QNUd9ASze gcxvNk6d/uK2l0xEWAYhzLrXLk4Ai03+JCXTV1xr8vCN228VVQ9dAdoetl5xtoRcIHwB qlTbQeiYVIp43a0YdXzI32ihiobr7nlHOdCKRyv9q4MDrAfHMmfZT57URP62CliqsWc2 ZpbKqWu06EVs/fqCkVsCFyZ1u5xsq3YHnkMlttI5x7ljLN9FNbxofF87hS4oVeplRWjW OgTw== 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; bh=7rhWHMWzbaH3FPArIdQN0BDFHgNFLgh3atbU/r2yG+s=; b=Jm99U8svoRY1mD5zrfM0zR06Iubtte6E5psRJ7YoBuC8WF8waoBxucGCQl27pa66wR 0ar9FOW/tHQIYqCltXkjeLRVgsG7YCK4QXTBy7gpm86CQjxXSOqtt6Fr/3ZCklzZAdB+ X/eTP5QIMcHqbFT+0okXLFZwWGf8vqhoBUQvbcJpR7fi5XU4kMPuCTbmZ1enheSdPC/a ZIlKOPOJL4jA3KFH3nEjOmhkFQWeqUg4Wu33cVOYQaTs8EiB3LABWyY4aA/EJhfLUVe7 DKr0/yc+HGKwEU2aH065K4RtArYl83OUAd7XQgfMiHAg5GJR+duUpzH1fuS5FlcmBbnC XlBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=0Bj1ax5y; 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 g23si1335643ejk.186.2019.10.17.06.33.16; Thu, 17 Oct 2019 06:33:42 -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=0Bj1ax5y; 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 S2390029AbfJPUWV (ORCPT + 99 others); Wed, 16 Oct 2019 16:22:21 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:37672 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732738AbfJPUWU (ORCPT ); Wed, 16 Oct 2019 16:22:20 -0400 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 99BEE5C052F; Wed, 16 Oct 2019 22:22:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1571257338; 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=7rhWHMWzbaH3FPArIdQN0BDFHgNFLgh3atbU/r2yG+s=; b=0Bj1ax5yusDcatXxJSGoRb9OtpibtRTNMek6gG0csB7zJcfMEt8jgeBpXW/x5UHdr5myta e5YLIOmYA2aSx8D2pLNlor65F2dWptinusWx8UtMv32oUz9BclVx58nWSQ43yqqlfbnFTh SbE7174QO/m37NPzyLxFS7mehb0BDGU= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Wed, 16 Oct 2019 22:22:18 +0200 From: Stefan Agner To: Philippe Schenker Cc: Greg Kroah-Hartman , linux-serial@vger.kernel.org, Max Krummenacher , Jiri Slaby , linux-kernel@vger.kernel.org, Fugang Duan , linux-imx@nxp.com, Andrey Smirnov Subject: Re: [PATCH v1 2/3] tty: serial: lpuart: Use defines that correspond to correct register In-Reply-To: <20191016151845.15859-2-philippe.schenker@toradex.com> References: <20191016151845.15859-1-philippe.schenker@toradex.com> <20191016151845.15859-2-philippe.schenker@toradex.com> Message-ID: <8512c4712d0500c1c46186c2b52a7350@agner.ch> X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-10-16 17:18, Philippe Schenker wrote: > Use UARTMODIR defines instead of UARTMODEM as it is a 32-bit function This reads a bit strange at first. Also it is helpful for later to state that this does not make a difference in practise, so how about: Use define from the 32-bit register description UARTMODIR_* instead of UARTMODEM_*. The value is the same, so there is no functional change. Otherwise looks good to me: Reviewed-by: Stefan Agner -- Stefan > > Signed-off-by: Philippe Schenker > --- > > drivers/tty/serial/fsl_lpuart.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c > index f3271857621c..346b4a070ce9 100644 > --- a/drivers/tty/serial/fsl_lpuart.c > +++ b/drivers/tty/serial/fsl_lpuart.c > @@ -1879,10 +1879,10 @@ lpuart32_set_termios(struct uart_port *port, > struct ktermios *termios, > } > > if (termios->c_cflag & CRTSCTS) { > - modem |= UARTMODEM_RXRTSE | UARTMODEM_TXCTSE; > + modem |= (UARTMODIR_RXRTSE | UARTMODIR_TXCTSE); > } else { > termios->c_cflag &= ~CRTSCTS; > - modem &= ~(UARTMODEM_RXRTSE | UARTMODEM_TXCTSE); > + modem &= ~(UARTMODIR_RXRTSE | UARTMODIR_TXCTSE); > } > > if (termios->c_cflag & CSTOPB)