Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369755
b: refs/heads/master
c: aef614e
h: refs/heads/master
i:
  369753: 4f96b4e
  369751: 6bd8d58
v: v3
  • Loading branch information
Sebastian Siewior authored and David S. Miller committed Apr 25, 2013
1 parent 14fd4a3 commit fd53f2b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 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: fd51cf199421197d14099b4ba382301cc28e5544
refs/heads/master: aef614e13dfbdd3b9ae44ad110159f75b9029bba
10 changes: 5 additions & 5 deletions trunk/drivers/net/ethernet/ti/cpsw.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ void cpsw_rx_handler(void *token, int len, int status)
return;

ret = cpdma_chan_submit(priv->rxch, skb, skb->data,
skb_tailroom(skb), 0, GFP_KERNEL);
skb_tailroom(skb), 0);
}
WARN_ON(ret < 0);
}
Expand Down Expand Up @@ -747,14 +747,14 @@ static inline int cpsw_tx_packet_submit(struct net_device *ndev,
{
if (!priv->data.dual_emac)
return cpdma_chan_submit(priv->txch, skb, skb->data,
skb->len, 0, GFP_KERNEL);
skb->len, 0);

if (ndev == cpsw_get_slave_ndev(priv, 0))
return cpdma_chan_submit(priv->txch, skb, skb->data,
skb->len, 1, GFP_KERNEL);
skb->len, 1);
else
return cpdma_chan_submit(priv->txch, skb, skb->data,
skb->len, 2, GFP_KERNEL);
skb->len, 2);
}

static inline void cpsw_add_dual_emac_def_ale_entries(
Expand Down Expand Up @@ -937,7 +937,7 @@ static int cpsw_ndo_open(struct net_device *ndev)
if (!skb)
goto err_cleanup;
ret = cpdma_chan_submit(priv->rxch, skb, skb->data,
skb_tailroom(skb), 0, GFP_KERNEL);
skb_tailroom(skb), 0);
if (ret < 0) {
kfree_skb(skb);
goto err_cleanup;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/ti/davinci_cpdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ static void __cpdma_chan_submit(struct cpdma_chan *chan,
}

int cpdma_chan_submit(struct cpdma_chan *chan, void *token, void *data,
int len, int directed, gfp_t gfp_mask)
int len, int directed)
{
struct cpdma_ctlr *ctlr = chan->ctlr;
struct cpdma_desc __iomem *desc;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/ethernet/ti/davinci_cpdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int cpdma_chan_dump(struct cpdma_chan *chan);
int cpdma_chan_get_stats(struct cpdma_chan *chan,
struct cpdma_chan_stats *stats);
int cpdma_chan_submit(struct cpdma_chan *chan, void *token, void *data,
int len, int directed, gfp_t gfp_mask);
int len, int directed);
int cpdma_chan_process(struct cpdma_chan *chan, int quota);

int cpdma_ctlr_int_ctrl(struct cpdma_ctlr *ctlr, bool enable);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/ethernet/ti/davinci_emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ static void emac_rx_handler(void *token, int len, int status)

recycle:
ret = cpdma_chan_submit(priv->rxchan, skb, skb->data,
skb_tailroom(skb), 0, GFP_KERNEL);
skb_tailroom(skb), 0);

WARN_ON(ret == -ENOMEM);
if (unlikely(ret < 0))
Expand Down Expand Up @@ -1092,7 +1092,7 @@ static int emac_dev_xmit(struct sk_buff *skb, struct net_device *ndev)
skb_tx_timestamp(skb);

ret_code = cpdma_chan_submit(priv->txchan, skb, skb->data, skb->len,
0, GFP_KERNEL);
0);
if (unlikely(ret_code != 0)) {
if (netif_msg_tx_err(priv) && net_ratelimit())
dev_err(emac_dev, "DaVinci EMAC: desc submit failed");
Expand Down Expand Up @@ -1558,7 +1558,7 @@ static int emac_dev_open(struct net_device *ndev)
break;

ret = cpdma_chan_submit(priv->rxchan, skb, skb->data,
skb_tailroom(skb), 0, GFP_KERNEL);
skb_tailroom(skb), 0);
if (WARN_ON(ret < 0))
break;
}
Expand Down

0 comments on commit fd53f2b

Please sign in to comment.