All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Geert Uytterhoeven" <geert+renesas@glider.be>,
	"Magnus Damm" <magnus.damm@gmail.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Jiri Slaby" <jirislaby@kernel.org>,
	linux-renesas-soc@vger.kernel.org,
	linux-serial <linux-serial@vger.kernel.org>,
	"Milan Stevanovic" <milan.stevanovic@se.com>,
	"Jimmy Lalande" <jimmy.lalande@se.com>,
	"Pascal Eberhard" <pascal.eberhard@se.com>,
	"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
	"Herve Codina" <herve.codina@bootlin.com>,
	"Clement Leger" <clement.leger@bootlin.com>,
	"Phil Edworthy" <phil.edworthy@renesas.com>
Subject: Re: [PATCH v4 7/9] serial: 8250: dw: Add support for DMA flow controlling devices
Date: Mon, 4 Apr 2022 17:20:33 +0200	[thread overview]
Message-ID: <20220404172033.56c55a37@xps13> (raw)
In-Reply-To: <Ykc4kGLEnwdoUqZ6@smile.fi.intel.com>

Hi Andy, Ilpo,

andriy.shevchenko@linux.intel.com wrote on Fri, 1 Apr 2022 20:38:24
+0300:

> On Fri, Apr 01, 2022 at 01:56:49PM +0300, Ilpo Järvinen wrote:
> > On Wed, 30 Mar 2022, Miquel Raynal wrote:  
> 
> ...
> 
> > > +			writel(0, p->membase + RZN1_UART_RDMACR);
> > > +			writel(1, p->membase + DW_UART_DMASA);  
> > 
> > Currently there is serial_out(), dw8250_writel_ext(), and a few writel()s 
> > too for writing to registers. It would be nice to move towards more 
> > homogeneous approach rather than adding more writel()s.  
> 
> Actually a good catch!
> 
> > I suggest dw8250_writel_ext() is moved to dwlib.h. Then it could be used 
> > here (and dw8250_readl_ext() too should be moved but IIRC there wasn't 
> > any reads added by this series).  
> 
> I agree that for the sake of symmetry it's good to move both.

I moved them both to dwlib.h as suggested.

I had a look at the current uses of readb/l and writeb/l in dw.c but
converting all these function calls is not as straightforward as I
initially thought so I decided to limit myself to moving these helpers
and using them in my additions, I hope this is fine.

Thanks,
Miquèl

  reply	other threads:[~2022-04-04 15:20 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-30 13:20 [PATCH v4 0/9] serial: 8250: dw: RZN1 DMA support Miquel Raynal
2022-03-30 13:20 ` [PATCH v4 1/9] serial: 8250: dw: Move definitions to the shared header Miquel Raynal
2022-03-30 14:08   ` Andy Shevchenko
2022-03-30 13:20 ` [PATCH v4 2/9] serial: 8250: dw: Use the device API Miquel Raynal
2022-03-30 13:58   ` Andy Shevchenko
2022-03-30 13:20 ` [PATCH v4 3/9] serial: 8250: dw: Create a more generic platform data structure Miquel Raynal
2022-03-30 14:02   ` Andy Shevchenko
2022-03-30 14:04     ` Andy Shevchenko
2022-03-30 13:20 ` [PATCH v4 4/9] serial: 8250: dw: Allow to use a fallback CPR value if not synthesized Miquel Raynal
2022-03-30 14:11   ` Andy Shevchenko
2022-03-30 13:20 ` [PATCH v4 5/9] serial: 8250: dma: Allow driver operations before starting DMA transfers Miquel Raynal
2022-03-30 14:07   ` Andy Shevchenko
2022-03-30 13:20 ` [PATCH v4 6/9] serial: 8250: dw: Introduce an rx_timeout variable in the IRQ path Miquel Raynal
2022-03-30 14:14   ` Andy Shevchenko
2022-03-30 13:20 ` [PATCH v4 7/9] serial: 8250: dw: Add support for DMA flow controlling devices Miquel Raynal
2022-03-30 14:16   ` Andy Shevchenko
2022-03-30 14:18     ` Andy Shevchenko
2022-04-01 10:56   ` Ilpo Järvinen
2022-04-01 17:38     ` Andy Shevchenko
2022-04-04 15:20       ` Miquel Raynal [this message]
2022-04-04 15:29         ` Ilpo Järvinen
2022-03-30 13:20 ` [PATCH v4 8/9] serial: 8250: dw: Improve RZN1 support Miquel Raynal
2022-03-30 14:19   ` Andy Shevchenko
2022-03-30 13:20 ` [PATCH v4 9/9] ARM: dts: r9a06g032: Fill the UART DMA properties Miquel Raynal
2022-03-30 14:13 ` [PATCH v4 0/9] serial: 8250: dw: RZN1 DMA support Andy Shevchenko
2022-04-04 14:20   ` Miquel Raynal
2022-04-04 14:39     ` Ilpo Järvinen

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=20220404172033.56c55a37@xps13 \
    --to=miquel.raynal@bootlin.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=clement.leger@bootlin.com \
    --cc=geert+renesas@glider.be \
    --cc=gregkh@linuxfoundation.org \
    --cc=herve.codina@bootlin.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jimmy.lalande@se.com \
    --cc=jirislaby@kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=milan.stevanovic@se.com \
    --cc=pascal.eberhard@se.com \
    --cc=phil.edworthy@renesas.com \
    --cc=thomas.petazzoni@bootlin.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.