]> Git Repo - u-boot.git/commit - drivers/net/mvgbe.c
arm: Kirkwood: Fix compiler optimization bug for kwgbe_send
authorSimon Kagstrom <[email protected]>
Wed, 8 Jul 2009 11:03:18 +0000 (13:03 +0200)
committerBen Warren <[email protected]>
Thu, 23 Jul 2009 05:53:45 +0000 (22:53 -0700)
commit7b05f5e027b81cd3a9a41c6c6d3fe09c72fa93f6
treefb66f9d1dacc15cc3544a61ca1e52ca18a4d0090
parent3f6b18ffd94621625de961bc566022b0266790f5
arm: Kirkwood: Fix compiler optimization bug for kwgbe_send

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 <[email protected]>
Signed-off-by: Ben Warren <[email protected]>
drivers/net/kirkwood_egiga.c
This page took 0.035592 seconds and 4 git commands to generate.