summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Ribalda <ricardo.ribalda@gmail.com>2011-11-07 23:39:57 +0000
committerDavid S. Miller <davem@davemloft.net>2011-11-09 15:39:57 -0500
commitf79d7e6f6ae397caf219cef1392ca39b3ff10833 (patch)
treef3d7bd824e1402496fccc0441d983087acc27e89
parent50ec1538fac0e39078d45ca5f8a5186621830058 (diff)
downloadlinux-3.10-f79d7e6f6ae397caf219cef1392ca39b3ff10833.tar.gz
linux-3.10-f79d7e6f6ae397caf219cef1392ca39b3ff10833.tar.bz2
linux-3.10-f79d7e6f6ae397caf219cef1392ca39b3ff10833.zip
net/ll_temac: FIX : Wait for indirect wait to end
While tracing down a connectivity problem on the temac I connected a probe to the Cross bar irq, and it was triggered when doing ifdown->ifup. This is fixed once waiting for the indirect write to end. Since it is not on the hot path there is no performance loss. Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/xilinx/ll_temac_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c
index 05a1ffad20d..2681b53820e 100644
--- a/drivers/net/ethernet/xilinx/ll_temac_main.c
+++ b/drivers/net/ethernet/xilinx/ll_temac_main.c
@@ -114,6 +114,7 @@ void temac_indirect_out32(struct temac_local *lp, int reg, u32 value)
return;
temac_iow(lp, XTE_LSW0_OFFSET, value);
temac_iow(lp, XTE_CTL0_OFFSET, CNTLREG_WRITE_ENABLE_MASK | reg);
+ temac_indirect_busywait(lp);
}
/**