Skip to content

Commit

Permalink
ps3_gelic: Don't kill the device on DMA failure
Browse files Browse the repository at this point in the history
Reset card->tx_dma_progress when lv1_net_start_tx_dma() fails or it
won't send anything afterwards anymore

Signed-off-by: Andre Heider <a.heider@gmail.com>
Acked-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Andre Heider authored and David S. Miller committed Jul 14, 2011
1 parent bb4f85c commit eff896c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/ps3_gelic_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,9 +838,11 @@ static int gelic_card_kick_txdma(struct gelic_card *card,
card->tx_dma_progress = 1;
status = lv1_net_start_tx_dma(bus_id(card), dev_id(card),
descr->bus_addr, 0);
if (status)
if (status) {
card->tx_dma_progress = 0;
dev_info(ctodev(card), "lv1_net_start_txdma failed," \
"status=%d\n", status);
}
}
return status;
}
Expand Down

0 comments on commit eff896c

Please sign in to comment.