From: Peter Korsgaard <jacmet@sunsite.dk>
To: John Linn <john.linn@xilinx.com>
Cc: linux-serial@vger.kernel.org, grant.likely@secretlab.ca,
michal.simek@petalogix.com, john.williams@petalogix.com
Subject: Re: [PATCH] [V2] uartlite: move from byte accesses to word accesses
Date: Thu, 21 Jan 2010 09:25:39 +0100 [thread overview]
Message-ID: <87tyuflv98.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <70e0020c-98ac-48d0-bfa6-1f2230ad2d0b@VA3EHSMHS026.ehs.local> (John Linn's message of "Wed, 20 Jan 2010 17:06:39 -0700")
>>>>> "John" == John Linn <john.linn@xilinx.com> writes:
John> Byte accesses for I/O devices in Xilinx IP are going to be less
John> desired in the future such that the driver is being changed to
John> use 32 bit accesses.
John> This change facilitates using the uartlite IP over a PCIe bus
John> which only allows 32 bit accesses.
John> Signed-off-by: John Linn <john.linn@xilinx.com>
John> ---
John> drivers/serial/uartlite.c | 36 ++++++++++++++++++------------------
John> 1 files changed, 18 insertions(+), 18 deletions(-)
John> diff --git a/drivers/serial/uartlite.c b/drivers/serial/uartlite.c
John> index 377f271..9f83949 100644
John> --- a/drivers/serial/uartlite.c
John> +++ b/drivers/serial/uartlite.c
John> @@ -86,7 +86,7 @@ static int ulite_receive(struct uart_port *port, int stat)
John> /* stats */
John> if (stat & ULITE_STATUS_RXVALID) {
port-> icount.rx++;
John> - ch = readb(port->membase + ULITE_RX);
John> + ch = (u8)in_be32(port->membase + ULITE_RX);
I don't believe all those (u8) casts are needed (and they could
potentially mask away other problems in the future).
Other than that,
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2010-01-21 8:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-21 0:06 [PATCH] [V2] uartlite: move from byte accesses to word accesses John Linn
2010-01-21 8:25 ` Peter Korsgaard [this message]
2010-03-17 14:47 ` John Linn
[not found] <1264032399-16358-1-git-send-email-john.linn@xilinx.com>
2010-01-21 0:09 ` John Linn
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=87tyuflv98.fsf@macbook.be.48ers.dk \
--to=jacmet@sunsite.dk \
--cc=grant.likely@secretlab.ca \
--cc=john.linn@xilinx.com \
--cc=john.williams@petalogix.com \
--cc=linux-serial@vger.kernel.org \
--cc=michal.simek@petalogix.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.