diff options
author | Richard Cochran <richardcochran@gmail.com> | 2011-06-19 17:51:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-20 16:56:55 -0400 |
commit | 1f6e44a6dc21a5d2abb068063acbbf64f8cee548 (patch) | |
tree | 6681c1beefa35d3b0a73ed911356fa3ed459a8cf | |
parent | 8c0069ae3a85eeedbbf955e380e822756f7a9d2f (diff) |
pxa168_eth: enable transmit time stamping.
This patch enables software (and phy device) transmit time stamping
Compile tested only.
Cc: Sachin Sanap <ssanap@marvell.com>
Cc: Zhangfei Gao <zgao6@marvell.com>
Cc: Philip Rakity <prakity@marvell.com>
Cc: Mark Brown <markb@marvell.com>
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/pxa168_eth.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/pxa168_eth.c b/drivers/net/pxa168_eth.c index 89f7540d90f9..e224740c6e2a 100644 --- a/drivers/net/pxa168_eth.c +++ b/drivers/net/pxa168_eth.c | |||
@@ -1267,6 +1267,9 @@ static int pxa168_eth_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1267 | pep->tx_skb[tx_index] = skb; | 1267 | pep->tx_skb[tx_index] = skb; |
1268 | desc->byte_cnt = length; | 1268 | desc->byte_cnt = length; |
1269 | desc->buf_ptr = dma_map_single(NULL, skb->data, length, DMA_TO_DEVICE); | 1269 | desc->buf_ptr = dma_map_single(NULL, skb->data, length, DMA_TO_DEVICE); |
1270 | |||
1271 | skb_tx_timestamp(skb); | ||
1272 | |||
1270 | wmb(); | 1273 | wmb(); |
1271 | desc->cmd_sts = BUF_OWNED_BY_DMA | TX_GEN_CRC | TX_FIRST_DESC | | 1274 | desc->cmd_sts = BUF_OWNED_BY_DMA | TX_GEN_CRC | TX_FIRST_DESC | |
1272 | TX_ZERO_PADDING | TX_LAST_DESC | TX_EN_INT; | 1275 | TX_ZERO_PADDING | TX_LAST_DESC | TX_EN_INT; |