public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, 3/3] pcnet: force ordering of descriptor accesses
Date: Fri, 18 Apr 2014 17:02:05 -0400	[thread overview]
Message-ID: <20140418210205.GA5698@bill-the-cat> (raw)
In-Reply-To: <1396885308-61884-4-git-send-email-paul.burton@imgtec.com>

On Mon, Apr 07, 2014 at 04:41:48PM +0100, Paul Burton wrote:

> The ordering of accesses to the rx & tx descriptors is important, yet
> the send & recv functions accessed them via regular structure accesses.
> This leaves the compiler with the opportunity to reorder those accesses
> or to hoist them outside of loops. Prevent that from happening by using
> readl & writel to access the descriptors. As a nice bonus, this removes
> the need for the driver to care about endianness.
> 
> Signed-off-by: Paul Burton <paul.burton@imgtec.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140418/79f04b33/attachment.pgp>

  reply	other threads:[~2014-04-18 21:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-07 15:41 [U-Boot] [PATCH 0/3] pcnet driver fixes Paul Burton
2014-04-07 15:41 ` [U-Boot] [PATCH 1/3] pcnet: access descriptor rings & init block uncached Paul Burton
2014-04-18 21:01   ` [U-Boot] [U-Boot, " Tom Rini
2014-04-07 15:41 ` [U-Boot] [PATCH 2/3] pcnet: align rx buffers for cache invalidation Paul Burton
2014-04-18 21:01   ` [U-Boot] [U-Boot, " Tom Rini
2014-04-07 15:41 ` [U-Boot] [PATCH 3/3] pcnet: force ordering of descriptor accesses Paul Burton
2014-04-18 21:02   ` Tom Rini [this message]
2014-04-17 19:44 ` [U-Boot] [PATCH 0/3] pcnet driver fixes Daniel Schwierzeck
2014-04-22 13:46   ` Tom Rini

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=20140418210205.GA5698@bill-the-cat \
    --to=trini@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox