linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: linux-serial@vger.kernel.org,
	Greg KH <gregkh@linuxfoundation.org>,
	Jiri Slaby <jirislaby@kernel.org>
Cc: linux-kernel@vger.kernel.org,
	"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Subject: [PATCH 00/44] serial: Convert drivers to use uart_xmit_advance()
Date: Wed, 19 Oct 2022 12:11:07 +0300	[thread overview]
Message-ID: <20221019091151.6692-1-ilpo.jarvinen@linux.intel.com> (raw)

The uart_xmit_advance() helper was created for managing the xmit tail
index and accounting. It simplifies one the most common operation in
almost every serial driver. Convert most of the drivers to use the new
helper.

I've tried to pick the drivers such that these shouldn't collide with
the ones Jiri's tx loop rewrite series is touching (unless he has
something hidden beyond what has been on the list).

Ilpo Järvinen (44):
  serial: dz: Use uart_xmit_advance()
  serial: men_z135_uart: Use uart_xmit_advance()
  serial: msm: Use uart_xmit_advance()
  serial: pch_uart: Use uart_xmit_advance()
  serial: sc16is7xx: Use uart_xmit_advance()
  serial: 8250_bcm7271: Use uart_xmit_advance()
  serial: 8250: Use uart_xmit_advance()
  serial: pl011: Use uart_xmit_advance()
  serial: ar933x: Use uart_xmit_advance()
  serial: arc: Use uart_xmit_advance()
  serial: atmel: Use uart_xmit_advance()
  serial: clps711x: Use uart_xmit_advance()
  serial: cpm_uart: Use uart_xmit_advance()
  serial: digicolor: Use uart_xmit_advance()
  serial: linflexuart: Use uart_xmit_advance()
  serial: fsl_lpuart: Use uart_xmit_advance()
  serial: imx: Use uart_xmit_advance()
  serial: ip22zilog: Use uart_xmit_advance()
  serial: liteuart: Use uart_xmit_advance()
  serial: max3100: Use uart_xmit_advance()
  serial: max310x: Use uart_xmit_advance()
  serial: meson: Use uart_xmit_advance()
  serial: milbeaut_usio: Use uart_xmit_advance()
  serial: mvebu-uart: Use uart_xmit_advance()
  serial: pic32: Use uart_xmit_advance()
  serial: pmac_zilog: Use uart_xmit_advance()
  serial: rda: Use uart_xmit_advance()
  serial: samsung_tty: Use uart_xmit_advance()
  serial: sb1250-duart: Use uart_xmit_advance()
  serial: sccnxp: Use uart_xmit_advance()
  serial: tegra: Use uart_xmit_advance()
  serial: sh-sci: Use uart_xmit_advance()
  serial: sprd: Use uart_xmit_advance()
  serial: stm32: Use uart_xmit_advance()
  serial: sunhv: Use uart_xmit_advance()
  serial: sunplus-uart: Use uart_xmit_advance()
  serial: sunsab: Use uart_xmit_advance()
  serial: sunsu: Use uart_xmit_advance()
  serial: sunzilog: Use uart_xmit_advance()
  serial: timbuart: Use uart_xmit_advance()
  serial: uartlite: Use uart_xmit_advance()
  serial: ucc_uart: Use uart_xmit_advance()
  serial: xuartps: Use uart_xmit_advance()
  serial: zs: Use uart_xmit_advance()

 drivers/tty/serial/8250/8250_bcm7271.c      |  4 +---
 drivers/tty/serial/8250/8250_port.c         |  3 +--
 drivers/tty/serial/amba-pl011.c             |  3 +--
 drivers/tty/serial/ar933x_uart.c            |  3 +--
 drivers/tty/serial/arc_uart.c               |  3 +--
 drivers/tty/serial/atmel_serial.c           | 11 ++---------
 drivers/tty/serial/clps711x.c               |  3 +--
 drivers/tty/serial/cpm_uart/cpm_uart_core.c |  3 +--
 drivers/tty/serial/digicolor-usart.c        |  3 +--
 drivers/tty/serial/dz.c                     |  3 +--
 drivers/tty/serial/fsl_linflexuart.c        |  3 +--
 drivers/tty/serial/fsl_lpuart.c             |  7 ++-----
 drivers/tty/serial/imx.c                    |  7 ++-----
 drivers/tty/serial/ip22zilog.c              |  6 ++----
 drivers/tty/serial/liteuart.c               |  3 +--
 drivers/tty/serial/max3100.c                |  4 +---
 drivers/tty/serial/max310x.c                |  5 +----
 drivers/tty/serial/men_z135_uart.c          |  5 +----
 drivers/tty/serial/meson_uart.c             |  3 +--
 drivers/tty/serial/milbeaut_usio.c          |  3 +--
 drivers/tty/serial/msm_serial.c             | 11 +++--------
 drivers/tty/serial/mvebu-uart.c             |  3 +--
 drivers/tty/serial/pch_uart.c               | 12 ++++--------
 drivers/tty/serial/pic32_uart.c             |  3 +--
 drivers/tty/serial/pmac_zilog.c             |  6 ++----
 drivers/tty/serial/rda-uart.c               |  3 +--
 drivers/tty/serial/samsung_tty.c            | 10 +++-------
 drivers/tty/serial/sb1250-duart.c           |  3 +--
 drivers/tty/serial/sc16is7xx.c              |  5 +----
 drivers/tty/serial/sccnxp.c                 |  3 +--
 drivers/tty/serial/serial-tegra.c           |  3 +--
 drivers/tty/serial/sh-sci.c                 |  5 +----
 drivers/tty/serial/sprd_serial.c            |  7 ++-----
 drivers/tty/serial/stm32-usart.c            |  7 +++----
 drivers/tty/serial/sunhv.c                  |  6 ++----
 drivers/tty/serial/sunplus-uart.c           |  4 +---
 drivers/tty/serial/sunsab.c                 |  6 ++----
 drivers/tty/serial/sunsu.c                  |  3 +--
 drivers/tty/serial/sunzilog.c               |  6 ++----
 drivers/tty/serial/timbuart.c               |  3 +--
 drivers/tty/serial/uartlite.c               |  3 +--
 drivers/tty/serial/ucc_uart.c               |  3 +--
 drivers/tty/serial/xilinx_uartps.c          |  4 +---
 drivers/tty/serial/zs.c                     |  3 +--
 44 files changed, 62 insertions(+), 145 deletions(-)

-- 
2.30.2


             reply	other threads:[~2022-10-19  9:45 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-19  9:11 Ilpo Järvinen [this message]
2022-10-19  9:11 ` [PATCH 01/44] serial: dz: Use uart_xmit_advance() Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 02/44] serial: men_z135_uart: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 03/44] serial: msm: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 04/44] serial: pch_uart: " Ilpo Järvinen
2022-10-19 11:11   ` Andy Shevchenko
2022-10-19  9:11 ` [PATCH 05/44] serial: sc16is7xx: " Ilpo Järvinen
2022-10-19 11:11   ` Andy Shevchenko
2022-10-19  9:11 ` [PATCH 06/44] serial: 8250_bcm7271: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 07/44] serial: 8250: " Ilpo Järvinen
2022-10-19 11:12   ` Andy Shevchenko
2022-10-19  9:11 ` [PATCH 08/44] serial: pl011: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 09/44] serial: ar933x: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 10/44] serial: arc: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 11/44] serial: atmel: " Ilpo Järvinen
2022-10-20  9:01   ` Claudiu.Beznea
2022-10-20 13:06     ` Richard Genoud
2022-10-19  9:11 ` [PATCH 12/44] serial: clps711x: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 13/44] serial: cpm_uart: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 14/44] serial: digicolor: " Ilpo Järvinen
2022-10-19 11:30   ` Baruch Siach
2022-10-19  9:11 ` [PATCH 15/44] serial: linflexuart: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 16/44] serial: fsl_lpuart: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 17/44] serial: imx: " Ilpo Järvinen
2022-10-19 13:14   ` Uwe Kleine-König
2022-10-19  9:11 ` [PATCH 18/44] serial: ip22zilog: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 19/44] serial: liteuart: " Ilpo Järvinen
2022-10-19 14:59   ` Gabriel L. Somlo
2022-10-19  9:11 ` [PATCH 20/44] serial: max3100: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 21/44] serial: max310x: " Ilpo Järvinen
2022-10-19 11:10   ` Andy Shevchenko
2022-10-19  9:11 ` [PATCH 22/44] serial: meson: " Ilpo Järvinen
2022-10-19  9:36   ` Neil Armstrong
2022-10-19 20:42   ` Martin Blumenstingl
2022-10-19  9:11 ` [PATCH 23/44] serial: milbeaut_usio: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 24/44] serial: mvebu-uart: " Ilpo Järvinen
2022-10-20 20:12   ` Pali Rohár
2022-10-19  9:11 ` [PATCH 25/44] serial: pic32: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 26/44] serial: pmac_zilog: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 27/44] serial: rda: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 28/44] serial: samsung_tty: " Ilpo Järvinen
2022-10-21 11:48   ` Sam Protsenko
2022-10-19  9:11 ` [PATCH 29/44] serial: sb1250-duart: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 30/44] serial: sccnxp: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 31/44] serial: tegra: " Ilpo Järvinen
2022-10-19 17:05   ` Thierry Reding
2022-10-19  9:11 ` [PATCH 32/44] serial: sh-sci: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 33/44] serial: sprd: " Ilpo Järvinen
2022-10-19 10:49   ` Baolin Wang
2022-10-19  9:11 ` [PATCH 34/44] serial: stm32: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 35/44] serial: sunhv: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 36/44] serial: sunplus-uart: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 37/44] serial: sunsab: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 38/44] serial: sunsu: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 39/44] serial: sunzilog: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 40/44] serial: timbuart: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 41/44] serial: uartlite: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 42/44] serial: ucc_uart: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 43/44] serial: xuartps: " Ilpo Järvinen
2022-10-19  9:11 ` [PATCH 44/44] serial: zs: " Ilpo Järvinen
2022-10-19 10:55 ` [PATCH 00/44] serial: Convert drivers to use uart_xmit_advance() Jiri Slaby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221019091151.6692-1-ilpo.jarvinen@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).