diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-05-22 02:36:56 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-05-22 02:36:56 -0400 |
commit | cf9b59e9d3e008591d1f54830f570982bb307a0d (patch) | |
tree | 113478ce8fd8c832ba726ffdf59b82cb46356476 /drivers/net/xilinx_emaclite.c | |
parent | 44504b2bebf8b5823c59484e73096a7d6574471d (diff) | |
parent | f4b87dee923342505e1ddba8d34ce9de33e75050 (diff) |
Merge remote branch 'origin' into secretlab/next-devicetree
Merging in current state of Linus' tree to deal with merge conflicts and
build failures in vio.c after merge.
Conflicts:
drivers/i2c/busses/i2c-cpm.c
drivers/i2c/busses/i2c-mpc.c
drivers/net/gianfar.c
Also fixed up one line in arch/powerpc/kernel/vio.c to use the
correct node pointer.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/net/xilinx_emaclite.c')
-rw-r--r-- | drivers/net/xilinx_emaclite.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 67f9237237dd..d04c5b262050 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c | |||
@@ -558,7 +558,7 @@ static void xemaclite_tx_timeout(struct net_device *dev) | |||
558 | } | 558 | } |
559 | 559 | ||
560 | /* To exclude tx timeout */ | 560 | /* To exclude tx timeout */ |
561 | dev->trans_start = 0xffffffff - TX_TIMEOUT - TX_TIMEOUT; | 561 | dev->trans_start = jiffies; /* prevent tx timeout */ |
562 | 562 | ||
563 | /* We're all ready to go. Start the queue */ | 563 | /* We're all ready to go. Start the queue */ |
564 | netif_wake_queue(dev); | 564 | netif_wake_queue(dev); |
@@ -590,7 +590,7 @@ static void xemaclite_tx_handler(struct net_device *dev) | |||
590 | dev->stats.tx_bytes += lp->deferred_skb->len; | 590 | dev->stats.tx_bytes += lp->deferred_skb->len; |
591 | dev_kfree_skb_irq(lp->deferred_skb); | 591 | dev_kfree_skb_irq(lp->deferred_skb); |
592 | lp->deferred_skb = NULL; | 592 | lp->deferred_skb = NULL; |
593 | dev->trans_start = jiffies; | 593 | dev->trans_start = jiffies; /* prevent tx timeout */ |
594 | netif_wake_queue(dev); | 594 | netif_wake_queue(dev); |
595 | } | 595 | } |
596 | } | 596 | } |
@@ -639,7 +639,6 @@ static void xemaclite_rx_handler(struct net_device *dev) | |||
639 | } | 639 | } |
640 | 640 | ||
641 | skb_put(skb, len); /* Tell the skb how much data we got */ | 641 | skb_put(skb, len); /* Tell the skb how much data we got */ |
642 | skb->dev = dev; /* Fill out required meta-data */ | ||
643 | 642 | ||
644 | skb->protocol = eth_type_trans(skb, dev); | 643 | skb->protocol = eth_type_trans(skb, dev); |
645 | skb->ip_summed = CHECKSUM_NONE; | 644 | skb->ip_summed = CHECKSUM_NONE; |
@@ -1055,7 +1054,6 @@ static int xemaclite_send(struct sk_buff *orig_skb, struct net_device *dev) | |||
1055 | 1054 | ||
1056 | dev->stats.tx_bytes += len; | 1055 | dev->stats.tx_bytes += len; |
1057 | dev_kfree_skb(new_skb); | 1056 | dev_kfree_skb(new_skb); |
1058 | dev->trans_start = jiffies; | ||
1059 | 1057 | ||
1060 | return 0; | 1058 | return 0; |
1061 | } | 1059 | } |
@@ -1172,7 +1170,7 @@ static int __devinit xemaclite_of_probe(struct of_device *ofdev, | |||
1172 | } | 1170 | } |
1173 | 1171 | ||
1174 | /* Get the virtual base address for the device */ | 1172 | /* Get the virtual base address for the device */ |
1175 | lp->base_addr = ioremap(r_mem.start, r_mem.end - r_mem.start + 1); | 1173 | lp->base_addr = ioremap(r_mem.start, resource_size(&r_mem)); |
1176 | if (NULL == lp->base_addr) { | 1174 | if (NULL == lp->base_addr) { |
1177 | dev_err(dev, "EmacLite: Could not allocate iomem\n"); | 1175 | dev_err(dev, "EmacLite: Could not allocate iomem\n"); |
1178 | rc = -EIO; | 1176 | rc = -EIO; |
@@ -1225,7 +1223,7 @@ static int __devinit xemaclite_of_probe(struct of_device *ofdev, | |||
1225 | return 0; | 1223 | return 0; |
1226 | 1224 | ||
1227 | error1: | 1225 | error1: |
1228 | release_mem_region(ndev->mem_start, r_mem.end - r_mem.start + 1); | 1226 | release_mem_region(ndev->mem_start, resource_size(&r_mem)); |
1229 | 1227 | ||
1230 | error2: | 1228 | error2: |
1231 | xemaclite_remove_ndev(ndev); | 1229 | xemaclite_remove_ndev(ndev); |