diff options
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 4fb74a07c01c..520693385d8d 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | |||
@@ -2566,9 +2566,6 @@ static int stmmac_hw_init(struct stmmac_priv *priv) | |||
2566 | /* Get and dump the chip ID */ | 2566 | /* Get and dump the chip ID */ |
2567 | priv->synopsys_id = stmmac_get_synopsys_id(priv); | 2567 | priv->synopsys_id = stmmac_get_synopsys_id(priv); |
2568 | 2568 | ||
2569 | /* To use alternate (extended) or normal descriptor structures */ | ||
2570 | stmmac_selec_desc_mode(priv); | ||
2571 | |||
2572 | /* To use the chained or ring mode */ | 2569 | /* To use the chained or ring mode */ |
2573 | if (chain_mode) { | 2570 | if (chain_mode) { |
2574 | priv->hw->chain = &chain_mode_ops; | 2571 | priv->hw->chain = &chain_mode_ops; |
@@ -2603,6 +2600,9 @@ static int stmmac_hw_init(struct stmmac_priv *priv) | |||
2603 | } else | 2600 | } else |
2604 | pr_info(" No HW DMA feature register supported"); | 2601 | pr_info(" No HW DMA feature register supported"); |
2605 | 2602 | ||
2603 | /* To use alternate (extended) or normal descriptor structures */ | ||
2604 | stmmac_selec_desc_mode(priv); | ||
2605 | |||
2606 | ret = priv->hw->mac->rx_ipc(priv->ioaddr); | 2606 | ret = priv->hw->mac->rx_ipc(priv->ioaddr); |
2607 | if (!ret) { | 2607 | if (!ret) { |
2608 | pr_warn(" RX IPC Checksum Offload not configured.\n"); | 2608 | pr_warn(" RX IPC Checksum Offload not configured.\n"); |