net: stmmac: fix dma operation mode config for older versions
authorJoao Pinto <Joao.Pinto@synopsys.com>
Wed, 22 Mar 2017 11:56:05 +0000 (11:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 22:35:03 +0000 (15:35 -0700)
commitb4f0a66155564aaf7e98492e027efad9f797c244
treef26e736c78972ceb693476b12d124e44ea043d2e
parentbbea124bc99df968011e76eba105fe964a4eceab
net: stmmac: fix dma operation mode config for older versions

The dma operation mode configuration routine was wrongly moved to a
function (stmmac_mtl_configuration) that is only executed if the
core version is >= 4.00.

Fixes: 6deee2221e11 ("net: stmmac: prepare dma op mode config for multiple queues")
Reported-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Reviewed-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Joao Pinto <jpinto@synopsys.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c