Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4064416ybb; Mon, 6 Apr 2020 23:25:43 -0700 (PDT) X-Google-Smtp-Source: APiQypKeoO+D5kQEvoq6i+3sS1wJgFhBvYPl+QHXNI0Pm2p1+dK+a/7Vp+Oc6b8rTACZw/y2LP2F X-Received: by 2002:aca:4243:: with SMTP id p64mr570489oia.21.1586240742960; Mon, 06 Apr 2020 23:25:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586240742; cv=none; d=google.com; s=arc-20160816; b=FpdAmBL/2bFZgyC5ZG/DzOQk/Bs4fu1qWzm/3MOsiCbSdkv3x5hkFVJSCMDNpdhNsD oiXz2lPzwv4fEcOLvmDC/1WvvYUECyCLFlnkEtxgnWkIT/8dmwgWCDQGk2UTl2DSkrvC B/ZNgFwEeEU31DggT5cu3XBtXsUZmmNzGx/8ySntA53nK1DRiyqhzW9oXOJk4ss8rUJF yy594CCnh/2MqvBYQY4uJMqNINl09tTDsHwuEI/i8iTH7NUhgQ0/XcD01W4NLFVhx2UV V46+MJmjvnfMP1avmY92TBHYFmC1zc+OY0td6Y+Z02RR1LZ15Zu2GmCeKvSDB9bwUgF2 NLow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XMcoO/jmJQX0wn0jevzXywHIyf04521+JgmN8nTeS/A=; b=M2EWfcxditJ3rZXrJdjS72TkI/YBxO6eeNe0s9BU+2yCxWOA2ly91/dYrnI6BmVFF1 4AxbT+LTS1YSfHDXi6tkXu7ukUuVOZHVa8Z6J/Bm6iElh6zQlIhKz1/kJmVHiLhdVRPF oBRS+2DDFTzNh61DGhC7pHULvX0kpmq7A9r3aw5lYg+FO75a9arUTjghSk4sfazE9XaU 1QnwoKlvjsAGXDHOS/4rhNuirEOTlfBjNSjgE7YwsxI4obEfO+Gi1Z9lUjiFXxTyGevM lLbcq3g592totS10sFOu6XcA8+e+HQ7d2EV+zXWD+EmQxY3ttxYbxdJ/MezcawcTZ1sT ovsQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11si859398otk.4.2020.04.06.23.25.31; Mon, 06 Apr 2020 23:25: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726767AbgDGGYp (ORCPT + 99 others); Tue, 7 Apr 2020 02:24:45 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:41610 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726030AbgDGGYo (ORCPT ); Tue, 7 Apr 2020 02:24:44 -0400 Received: by mail-ed1-f65.google.com with SMTP id v1so2580590edq.8; Mon, 06 Apr 2020 23:24:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XMcoO/jmJQX0wn0jevzXywHIyf04521+JgmN8nTeS/A=; b=phF0UoDlzWPfqBruneLgce8E14pUGFOJm0QDerd4uF4dOWLde2v6ALZmDYhO2S6vpg yEgefLqn2qBJ94n4TpeXMnfGtQ6zEG3cqZtNuwvzI3R8mVFZU9qUf1FraxVUE5hILxdE 0ngrjaB4FlMWKBqKlQ5jVZ6o1Q+FUx4XW5lqxZozVTFLLJ3K89GkKneC3o5TCdHQ/PAt ld/HPW6lsiDrZT6TsR6ZbTU91RTRfHa37pxMKoO+HAKsF087E0CgTH6suBBH2xD9d5RD 9MZ6/SmPRt3rba50ah0Fy3rvmvVoFr1B16dYYJhRkyFoVAD7YEHJJoHVPaT4QcnZdFpe hT6g== X-Gm-Message-State: AGi0Pub5987MqfLqtVHzRdlysr/wAwM3hNt6JfMezx+Vb0EuUJsrJXX6 uu8NOi+BiIRR5IAeMGStsUc= X-Received: by 2002:a50:e007:: with SMTP id e7mr585733edl.361.1586240682039; Mon, 06 Apr 2020 23:24:42 -0700 (PDT) Received: from kozik-lap ([194.230.155.125]) by smtp.googlemail.com with ESMTPSA id u6sm1243905ejb.68.2020.04.06.23.24.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Apr 2020 23:24:41 -0700 (PDT) Date: Tue, 7 Apr 2020 08:24:39 +0200 From: Krzysztof Kozlowski To: Jiri Slaby Cc: Hyunki Koo , gregkh@linuxfoundation.org, Rob Herring , Kukjin Kim , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: Re: [PATCH v6 2/2] tty: samsung_tty: 32-bit access for TX/RX hold registers Message-ID: <20200407062439.GA21995@kozik-lap> References: <20200401082721.19431-1-hyunki00.koo@samsung.com> <20200406230855.13772-1-hyunki00.koo@samsung.com> <62a918df-b3ba-21f4-b3ad-9f638ad104ad@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <62a918df-b3ba-21f4-b3ad-9f638ad104ad@suse.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 07, 2020 at 06:49:29AM +0200, Jiri Slaby wrote: > On 07. 04. 20, 1:08, Hyunki Koo wrote: > > Support 32-bit access for the TX/RX hold registers UTXH and URXH. > > > > This is required for some newer SoCs. > > > > Signed-off-by: Hyunki Koo > ... > > --- > > drivers/tty/serial/samsung_tty.c | 76 +++++++++++++++++++++++++++++++++------- > > 1 file changed, 64 insertions(+), 12 deletions(-) > > > > diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c > > index 73f951d65b93..bdf1d4d12cb1 100644 > > --- a/drivers/tty/serial/samsung_tty.c > > +++ b/drivers/tty/serial/samsung_tty.c > > @@ -154,12 +154,47 @@ struct s3c24xx_uart_port { > ... > > -#define wr_regb(port, reg, val) writeb_relaxed(val, portaddr(port, reg)) > > +static void wr_reg(struct uart_port *port, u32 reg, u32 val) > > +{ > > + switch (port->iotype) { > > + case UPIO_MEM: > > + writeb_relaxed(val, portaddr(port, reg)); > > + break; > > + case UPIO_MEM32: > > + writel_relaxed(val, portaddr(port, reg)); > > + break; > > + } > > +} > > + > > #define wr_regl(port, reg, val) writel_relaxed(val, portaddr(port, reg)) > > > > +static void wr_reg_barrier(struct uart_port *port, u32 reg, u32 val) > > You need to explain, why you need this _barrier variant now. This change > should be done in a separate patch too. There is no functional change in regard of barrier. The ordered IO was used there before. Best regards, Krzysztof