From: Petr Cvek <petr.cvek@tul.cz>
To: Robert Jarzmik <robert.jarzmik@free.fr>,
Samuel Ortiz <samuel@sortiz.org>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH v2 2/3] net: irda: pxaficp_ir: convert to readl and writel
Date: Sun, 13 Sep 2015 03:34:46 +0200 [thread overview]
Message-ID: <55F4D2B6.7020605@tul.cz> (raw)
In-Reply-To: <1442058324-9760-2-git-send-email-robert.jarzmik@free.fr>
Dne 12.9.2015 v 13:45 Robert Jarzmik napsal(a):
> Convert the pxa IRDA driver to readl and writel primitives, and remove
> another set of direct registers access. This leaves only the DMA
> registers access, which will be dealt with dmaengine conversion.
>
> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
> ---
> Since v1: modified __REG macro to cope with STIER, ST* registers
> ---
> drivers/net/irda/pxaficp_ir.c | 210 +++++++++++++++++++++++++-----------------
> 1 file changed, 126 insertions(+), 84 deletions(-)
>
> diff --git a/drivers/net/irda/pxaficp_ir.c b/drivers/net/irda/pxaficp_ir.c
> index b1794998c68e..4a2b3f71e4a8 100644
> --- a/drivers/net/irda/pxaficp_ir.c
> +++ b/drivers/net/irda/pxaficp_ir.c
> @@ -29,15 +29,16 @@
>
> #include <mach/dma.h>
> #include <linux/platform_data/irda-pxaficp.h>
> +#undef __REG
> +#define __REG(x) ((x) & 0xffff)
> #include <mach/regs-uart.h>
What are future plans for the definitions in the mach/regs-uart.h ? Maybe it would be better to duplicate register definition in ficp source code (it seems that normal PXA UART driver does not use these ones). But random searches shows, that at least base address register:
#define STUART STRBR
#define STRBR __REG(0x40700000) /* Receive Buffer Register (read only) */
is used in machine init source codes. I can look at it in the "near" future (if I don't forget :-D).
In other case patchset works, as it has been tested for SIR part.
Tested-by: Petr Cvek <petr.cvek@tul.cz>
next prev parent reply other threads:[~2015-09-13 1:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-12 11:45 [PATCH v2 1/3] net: irda: pxaficp_ir: use sched_clock() for time management Robert Jarzmik
2015-09-12 11:45 ` [PATCH v2 2/3] net: irda: pxaficp_ir: convert to readl and writel Robert Jarzmik
2015-09-13 1:34 ` Petr Cvek [this message]
2015-09-12 11:45 ` [PATCH v2 3/3] net: irda: pxaficp_ir: dmaengine conversion Robert Jarzmik
2015-09-15 23:40 ` [PATCH v2 1/3] net: irda: pxaficp_ir: use sched_clock() for time management David Miller
2015-09-16 9:34 ` Robert Jarzmik
2015-09-17 21:51 ` David Miller
2015-09-18 16:36 ` Robert Jarzmik
2015-09-21 23:12 ` David Miller
2015-09-22 19:27 ` Robert Jarzmik
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=55F4D2B6.7020605@tul.cz \
--to=petr.cvek@tul.cz \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=robert.jarzmik@free.fr \
--cc=samuel@sortiz.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