arm: Kirkwood: Fix compiler optimization bug for kwgbe_send
authorSimon Kagstrom <simon.kagstrom@netinsight.net>
Wed, 8 Jul 2009 11:03:18 +0000 (13:03 +0200)
committerBen Warren <biggerbadderben@gmail.com>
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 <simon.kagstrom@netinsight.net>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/kirkwood_egiga.c