diff options
Diffstat (limited to 'drivers/net/ucc_geth.c')
-rw-r--r-- | drivers/net/ucc_geth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index 41ad2f3697c7..eb8fe7e16c6c 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c | |||
@@ -3279,13 +3279,12 @@ static int ucc_geth_tx(struct net_device *dev, u8 txQ) | |||
3279 | /* Handle the transmitted buffer and release */ | 3279 | /* Handle the transmitted buffer and release */ |
3280 | /* the BD to be used with the current frame */ | 3280 | /* the BD to be used with the current frame */ |
3281 | 3281 | ||
3282 | if (bd == ugeth->txBd[txQ]) /* queue empty? */ | 3282 | skb = ugeth->tx_skbuff[txQ][ugeth->skb_dirtytx[txQ]]; |
3283 | if (!skb) | ||
3283 | break; | 3284 | break; |
3284 | 3285 | ||
3285 | dev->stats.tx_packets++; | 3286 | dev->stats.tx_packets++; |
3286 | 3287 | ||
3287 | skb = ugeth->tx_skbuff[txQ][ugeth->skb_dirtytx[txQ]]; | ||
3288 | |||
3289 | if (skb_queue_len(&ugeth->rx_recycle) < RX_BD_RING_LEN && | 3288 | if (skb_queue_len(&ugeth->rx_recycle) < RX_BD_RING_LEN && |
3290 | skb_recycle_check(skb, | 3289 | skb_recycle_check(skb, |
3291 | ugeth->ug_info->uf_info.max_rx_buf_length + | 3290 | ugeth->ug_info->uf_info.max_rx_buf_length + |
@@ -3607,6 +3606,7 @@ static int ucc_geth_suspend(struct of_device *ofdev, pm_message_t state) | |||
3607 | if (!netif_running(ndev)) | 3606 | if (!netif_running(ndev)) |
3608 | return 0; | 3607 | return 0; |
3609 | 3608 | ||
3609 | netif_device_detach(ndev); | ||
3610 | napi_disable(&ugeth->napi); | 3610 | napi_disable(&ugeth->napi); |
3611 | 3611 | ||
3612 | /* | 3612 | /* |
@@ -3665,7 +3665,7 @@ static int ucc_geth_resume(struct of_device *ofdev) | |||
3665 | phy_start(ugeth->phydev); | 3665 | phy_start(ugeth->phydev); |
3666 | 3666 | ||
3667 | napi_enable(&ugeth->napi); | 3667 | napi_enable(&ugeth->napi); |
3668 | netif_start_queue(ndev); | 3668 | netif_device_attach(ndev); |
3669 | 3669 | ||
3670 | return 0; | 3670 | return 0; |
3671 | } | 3671 | } |