net: stmmac: fixed enh_desc set always zero
authorByungho An <bh74.an@samsung.com>
Fri, 28 Jun 2013 07:35:32 +0000 (16:35 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jul 2013 20:33:03 +0000 (13:33 -0700)
commit61369d0259a724606f3941a46d2c75155d66cf2c
tree3797cf786d970cf78022cc2b2f4484c3a6578c58
parent0d909dcdeffeee3c42703dc1d17766d94fd47b71
net: stmmac: fixed enh_desc set always zero

This patch fixed that enh_desc value is always zero.
Due to calling order of stmmac_selec_desc_mode(), enh_desc value is always zero.
Even though mac is set to use enhanced dma descriptor, if enh_desc is zero,
functions related dma descriptor are not working correctly.

Signed-off-by: Byungho An <bh74.an@samsung.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c