From: Can Aydin <can.aydin@locatacorp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] Freescale 85xx/P1/P2 eSPI controller driver
Date: Mon, 25 Oct 2010 11:31:20 +1100 [thread overview]
Message-ID: <4CC4CFD8.5030405@locatacorp.com> (raw)
In-Reply-To: <20101024122108.1D57211D921@gemini.denx.de>
Dear Wolfgang Denk,
On 24/10/2010 11:21 PM, Wolfgang Denk wrote:
> Dear Can Aydin,
>
> In message<1287920728-6458-1-git-send-email-can.aydin@locatacorp.com> you wrote:
>> Driver for the Freescale eSPI controller found in 85xx, P1/P2 and P4xx SoCs.
> ...
>> +static inline void write_u32_part (u32 * in, u32 * out, u8 size)
>> +{
>> + int i;
>> + u8 *ibyte = (u8 *) in;
>> + u8 *obyte = (u8 *) out;
>> +
>> + for (i = 0; i< size; i++) {
>> + obyte[i] = ibyte[i];
>> + }
>> +}
> What is this cunction needed for? Can you not use a plain memcpy()
> instead?
>
> If not, is it really sufficient you use plain memory read/write
> operations here, without any MBs or similar (i. e. are you sure that
> no I/O accessors are needed here) ?
Yes a plain memcpy would suffice there, that function was actually a
leftover of some test code. I'll fix that and incorporate the other
comments.
Regards,
Can Aydin
prev parent reply other threads:[~2010-10-25 0:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-24 11:45 [U-Boot] [PATCH v2] Freescale 85xx/P1/P2 eSPI controller driver Can Aydin
2010-10-24 12:21 ` Wolfgang Denk
2010-10-25 0:31 ` Can Aydin [this message]
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=4CC4CFD8.5030405@locatacorp.com \
--to=can.aydin@locatacorp.com \
--cc=u-boot@lists.denx.de \
/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.