From: Breno Leitao Date: Thu, 26 Aug 2010 08:27:58 +0000 (+0000) Subject: qlge: reset the chip before freeing the buffers X-Git-Tag: upstream/snapshot3+hdmi~12792^2~153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe5f098055ed7f701bfb16f8f87378cf67de9a0e;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git qlge: reset the chip before freeing the buffers Qlge is freeing the buffers before stopping the card DMA, and this can cause some severe error, as a EEH event on PPC. This patch just stop the card and then free the resources. Signed-off-by: Breno Leitao Signed-off-by: Ron Mercer Signed-off-by: David S. Miller --- diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index 8d63f69..5f89e83 100644 --- a/drivers/net/qlge/qlge_main.c +++ b/drivers/net/qlge/qlge_main.c @@ -3919,12 +3919,12 @@ static int ql_adapter_down(struct ql_adapter *qdev) for (i = 0; i < qdev->rss_ring_count; i++) netif_napi_del(&qdev->rx_ring[i].napi); - ql_free_rx_buffers(qdev); - status = ql_adapter_reset(qdev); if (status) netif_err(qdev, ifdown, qdev->ndev, "reset(func #%d) FAILED!\n", qdev->func); + ql_free_rx_buffers(qdev); + return status; }