mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 01:54:00 +00:00
ps3_gelic: Don't kill the device on DMA failure
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>
This commit is contained in:
parent
bb4f85ce17
commit
eff896ce0b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user