Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62813
b: refs/heads/master
c: 583aae1
h: refs/heads/master
i:
  62811: 89abbf1
v: v3
  • Loading branch information
Masakazu Mokuno authored and Jeff Garzik committed Jul 24, 2007
1 parent 051dcf2 commit 88a094b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39a3d2d19cc8dc9d7ec3a1fefe95d7de0c6dc317
refs/heads/master: 583aae1094d28aa1d58360318388c11d2ae7ed9c
9 changes: 7 additions & 2 deletions trunk/drivers/net/ps3_gelic_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -943,8 +943,8 @@ static int gelic_net_decode_one_descr(struct gelic_net_card *card)
descr->prev->next_descr_addr = descr->bus_addr;

if (dmac_chain_ended) {
gelic_net_enable_rxdmac(card);
dev_dbg(ctodev(card), "reenable rx dma\n");
card->rx_dma_restart_required = 1;
dev_dbg(ctodev(card), "reenable rx dma scheduled\n");
}

return 1;
Expand Down Expand Up @@ -1020,6 +1020,11 @@ static irqreturn_t gelic_net_interrupt(int irq, void *ptr)
if (!status)
return IRQ_NONE;

if (card->rx_dma_restart_required) {
card->rx_dma_restart_required = 0;
gelic_net_enable_rxdmac(card);
}

if (status & GELIC_NET_RXINT) {
gelic_net_rx_irq_off(card);
netif_rx_schedule(netdev);
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/ps3_gelic_net.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ struct gelic_net_card {

struct gelic_net_descr_chain tx_chain;
struct gelic_net_descr_chain rx_chain;
int rx_dma_restart_required;
/* gurad dmac descriptor chain*/
spinlock_t chain_lock;

Expand Down

0 comments on commit 88a094b

Please sign in to comment.