From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Mon, 20 Jul 2009 22:40:44 -0700 Subject: [U-Boot] [PATCH 2/4]: arm: Kirkwood: Fix compiler optimization bug for kwgbe_send In-Reply-To: <20090708130318.60a40ec7@marrow.netinsight.se> References: <20090708130134.4b100399@marrow.netinsight.se> <20090708130318.60a40ec7@marrow.netinsight.se> Message-ID: <4A6554DC.4050803@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Simon Kagstrom wrote: > kwgbe_send/recv both have loops waiting for the hardware to set a bit. > GCC 4.3.3 cleverly optimizes the send case to ... a while(1); loop. This > patch uses readl to force a read from device memory. Other volatile > accesses have also been replaced with readl/writel where appropriate > (as per suggestions on the U-boot mailing list). > > Signed-off-by: Simon Kagstrom > --- > drivers/net/kirkwood_egiga.c | 31 +++++++++++++++++++------------ > 1 files changed, 19 insertions(+), 12 deletions(-) > Applied to net repo. thanks,