]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: enable/disable rx/tx in the core with a single write.
authoravisconti <armando.visconti@st.com>
Mon, 25 Oct 2010 18:58:14 +0000 (18:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2010 18:47:54 +0000 (11:47 -0700)
commit0a97d7f2b900ecd434daa7834d7f87083e53708d
treeb32bcc4f66ac12f1a6c94d73a0ada36412cfa8a7
parent5e64d621cdba431df69d60a59998384762a97c1c
stmmac: enable/disable rx/tx in the core with a single write.

This patch enables and disables the rx and tx bits in the MAC control reg
by using a single write operation.
This also solves a possible problem (spotted on SPEAr platforms) at 10Mbps
where two consecutive writes to a MAC control register can take more than
4 phy_clk cycles.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/stmmac/stmmac_main.c