From patchwork Wed May 6 07:00:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyunki Koo X-Patchwork-Id: 214028 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D06A0C47258 for ; Wed, 6 May 2020 07:00:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AFC3E2082E for ; Wed, 6 May 2020 07:00:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="u2GpqU9i" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728106AbgEFHA1 (ORCPT ); Wed, 6 May 2020 03:00:27 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:24487 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728010AbgEFHAZ (ORCPT ); Wed, 6 May 2020 03:00:25 -0400 Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20200506070021epoutp02351c6e264bda50b7cffc3b071f5da5d7~MXkWi9mWP2136121361epoutp02b for ; Wed, 6 May 2020 07:00:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20200506070021epoutp02351c6e264bda50b7cffc3b071f5da5d7~MXkWi9mWP2136121361epoutp02b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1588748421; bh=QLGR/21hPBV9EKZby41Rww+EnJI3BX4xeSI7yPOB9P0=; h=From:To:Cc:Subject:Date:References:From; b=u2GpqU9iyeYfTUrC3ms8V1v2yQRH7GH0rIvgjBEQooBVzstv+QGkCoixUWuOQXffj WOYS6tIp0JGBJ/lraNWusITZleP1XBP3fW33UJSDlQbByPEWJS2X0E7Va03JJ433HH ioWXODrSpv4W1EKPr4TH00SeCO20hRep1Q4O18EM= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20200506070020epcas2p133c622a8ff794cf98d6e3d269d022151~MXkV1syiA0588605886epcas2p17; Wed, 6 May 2020 07:00:20 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.40.186]) by epsnrtp2.localdomain (Postfix) with ESMTP id 49H6tC1cnVzMqYkZ; Wed, 6 May 2020 07:00:19 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id B0.BC.04704.18062BE5; Wed, 6 May 2020 16:00:17 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20200506070015epcas2p2f2ce5d07918dbea764e2830d9024fc5f~MXkQ4xXju1433414334epcas2p24; Wed, 6 May 2020 07:00:15 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200506070015epsmtrp2b51a567e72403619e656abfa4c57bb46~MXkQ3gqv91579015790epsmtrp2S; Wed, 6 May 2020 07:00:15 +0000 (GMT) X-AuditID: b6c32a46-829ff70000001260-86-5eb26081197f Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 21.E8.18461.F7062BE5; Wed, 6 May 2020 16:00:15 +0900 (KST) Received: from ishtar.dsn.sec.samsung.com (unknown [12.36.155.159]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200506070015epsmtip1450ad8070358777f8578415f18b1d91b~MXkQtcnZ-2422924229epsmtip14; Wed, 6 May 2020 07:00:15 +0000 (GMT) From: Hyunki Koo To: Kukjin Kim , Krzysztof Kozlowski , Greg Kroah-Hartman , Jiri Slaby , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Hyunki Koo Subject: [PATCH v9 1/3] serial: samsung: Replace rd_regb/wr_regb with rd_reg/wr_reg Date: Wed, 6 May 2020 16:00:05 +0900 Message-Id: <20200506070009.16809-1-hyunki00.koo@samsung.com> X-Mailer: git-send-email 2.15.0.rc1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDKsWRmVeSWpSXmKPExsWy7bCmqW5jwqY4g6PdAhbNi9ezWaxaeoPZ YsqGD0wW/Y9fM1ucP7+B3WLT42usFpd3zWGzmHF+H5PFmcW97A6cHptWdbJ57J+7ht1j85J6 j74tqxg91m+5yuLxeZNcAFtUjk1GamJKapFCal5yfkpmXrqtkndwvHO8qZmBoa6hpYW5kkJe Ym6qrZKLT4CuW2YO0FFKCmWJOaVAoYDE4mIlfTubovzSklSFjPziElul1IKUnAJDwwK94sTc 4tK8dL3k/FwrQwMDI1OgyoScjCULVjMW3JCs+D5rA3sD43HRLkZODgkBE4l/F9cydTFycQgJ 7GCUeH9jJwuE84lR4ufdu2wQzjdGiSmnvjPDtDR872GGSOxllOif/IERwvnBKPFjz0FGkCo2 AW2JN99nglWJCCxhkph+/gkLSIJZQFPix4EbrCC2sECoxO0th5hAbBYBVYktrzaB2bwCthKT //1kg1inLHHh3RJWkEESAsfYJfZs+swOkXCR2Nk/CeomYYlXx7dAxaUkPr/bC9VcL7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zo1rvEwRcz uf2+RlRK3Yms/qT5zosPPPyzLGrOh/sm3F4ydWHnWL/s9TvOPo/1mVLH6rX9+U9+bxaSLvlu WVrIMfXn+1Wmb668NJ/36LvI2U1v55QxZIb7fNw/yYAzfGNIrtOP/e/U/pn8+3E+wE5gSYBZ Y1bz67aAV2dYbzWfOrr5VYrrv+U7EvJP//NPKy9ylJ7lEF/w9dLiGj7OTNvNa790HT0nWp84 /aD6s90FhtdTpGzFvKK8jy7ZuFNR5kAIt9ZXLt/GhF9/Xzl279nFpRZqsXxzI/vGRezv59yr YT0QmHIg8tlLRUklluKMREMt5qLiRABgR5VqoQIAAA== X-CMS-MailID: 20200506070015epcas2p2f2ce5d07918dbea764e2830d9024fc5f X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200506070015epcas2p2f2ce5d07918dbea764e2830d9024fc5f References: Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org This patch change the name of macro for general usage. Signed-off-by: Hyunki Koo --- drivers/tty/serial/samsung_tty.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 73f951d65b93..326b0164609c 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -154,10 +154,10 @@ struct s3c24xx_uart_port { #define portaddrl(port, reg) \ ((unsigned long *)(unsigned long)((port)->membase + (reg))) -#define rd_regb(port, reg) (readb_relaxed(portaddr(port, reg))) +#define rd_reg(port, reg) (readb_relaxed(portaddr(port, reg))) #define rd_regl(port, reg) (readl_relaxed(portaddr(port, reg))) -#define wr_regb(port, reg, val) writeb_relaxed(val, portaddr(port, reg)) +#define wr_reg(port, reg, val) writeb_relaxed(val, portaddr(port, reg)) #define wr_regl(port, reg, val) writel_relaxed(val, portaddr(port, reg)) /* Byte-order aware bit setting/clearing functions. */ @@ -714,7 +714,7 @@ static void s3c24xx_serial_rx_drain_fifo(struct s3c24xx_uart_port *ourport) fifocnt--; uerstat = rd_regl(port, S3C2410_UERSTAT); - ch = rd_regb(port, S3C2410_URXH); + ch = rd_reg(port, S3C2410_URXH); if (port->flags & UPF_CONS_FLOW) { int txe = s3c24xx_serial_txempty_nofifo(port); @@ -826,7 +826,7 @@ static irqreturn_t s3c24xx_serial_tx_chars(int irq, void *id) } if (port->x_char) { - wr_regb(port, S3C2410_UTXH, port->x_char); + wr_reg(port, S3C2410_UTXH, port->x_char); port->icount.tx++; port->x_char = 0; goto out; @@ -852,7 +852,7 @@ static irqreturn_t s3c24xx_serial_tx_chars(int irq, void *id) if (rd_regl(port, S3C2410_UFSTAT) & ourport->info->tx_fifofull) break; - wr_regb(port, S3C2410_UTXH, xmit->buf[xmit->tail]); + wr_reg(port, S3C2410_UTXH, xmit->buf[xmit->tail]); xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1); port->icount.tx++; count--; @@ -916,7 +916,7 @@ static unsigned int s3c24xx_serial_tx_empty(struct uart_port *port) /* no modem control lines */ static unsigned int s3c24xx_serial_get_mctrl(struct uart_port *port) { - unsigned int umstat = rd_regb(port, S3C2410_UMSTAT); + unsigned int umstat = rd_reg(port, S3C2410_UMSTAT); if (umstat & S3C2410_UMSTAT_CTS) return TIOCM_CAR | TIOCM_DSR | TIOCM_CTS; @@ -2185,7 +2185,7 @@ static int s3c24xx_serial_get_poll_char(struct uart_port *port) if (s3c24xx_serial_rx_fifocnt(ourport, ufstat) == 0) return NO_POLL_CHAR; - return rd_regb(port, S3C2410_URXH); + return rd_reg(port, S3C2410_URXH); } static void s3c24xx_serial_put_poll_char(struct uart_port *port, @@ -2200,7 +2200,7 @@ static void s3c24xx_serial_put_poll_char(struct uart_port *port, while (!s3c24xx_serial_console_txrdy(port, ufcon)) cpu_relax(); - wr_regb(port, S3C2410_UTXH, c); + wr_reg(port, S3C2410_UTXH, c); } #endif /* CONFIG_CONSOLE_POLL */ @@ -2212,7 +2212,7 @@ s3c24xx_serial_console_putchar(struct uart_port *port, int ch) while (!s3c24xx_serial_console_txrdy(port, ufcon)) cpu_relax(); - wr_regb(port, S3C2410_UTXH, ch); + wr_reg(port, S3C2410_UTXH, ch); } static void